|
OpenGothic
Open source reimplementation of Gothic I and II
|
#include <animationsolver.h>
Classes | |
| struct | Overlay |
Public Types | |
| enum | Anim : uint16_t { NoAnim , Idle , Move , CacheLast = Move , MoveBack , MoveL , MoveR , RotL , RotR , WhirlL , WhirlR , Fall , FallDeep , FallDeepA , FallDeepB , Jump , JumpUpLow , JumpUpMid , JumpUp , JumpHang , Fallen , FallenA , FallenB , SlideA , SlideB , DeadA , DeadB , UnconsciousA , UnconsciousB , InteractIn , InteractOut , InteractToStand , InteractFromStand , Attack , AttackL , AttackR , AttackBlock , AttackFinish , StumbleA , StumbleB , AimBow , PointAt , ItmGet , ItmDrop , MagNoMana } |
| enum | TurnType : uint8_t { Std = 0 , None , Whirl } |
Public Member Functions | |
| AnimationSolver () | |
| void | save (Serialize &fout) const |
| void | load (Serialize &fin) |
| void | setSkeleton (const Skeleton *sk) |
| void | update (uint64_t tickCount) |
| bool | hasOverlay (const Skeleton *sk) const |
| void | addOverlay (const Skeleton *sk, uint64_t time) |
| void | delOverlay (std::string_view sk) |
| void | delOverlay (const Skeleton *sk) |
| void | clearOverlays () |
| const Animation::Sequence * | solveNext (const Animation::Sequence &sq) const |
| const Animation::Sequence * | solveFrm (std::string_view format) const |
| const Animation::Sequence * | solveAnim (Anim a, WeaponState st, WalkBit wlk, const Pose &pose) const |
| const Animation::Sequence * | solveAnim (WeaponState st, WeaponState cur, bool run) const |
| const Animation::Sequence * | solveAnim (std::string_view scheme, bool run, bool invest) const |
| const Animation::Sequence * | solveAnim (Interactive *inter, Anim a, const Pose &pose) const |
Definition at line 16 of file animationsolver.h.
| enum AnimationSolver::Anim : uint16_t |
Definition at line 20 of file animationsolver.h.
| enum AnimationSolver::TurnType : uint8_t |
| Enumerator | |
|---|---|
| Std | |
| None | |
| Whirl | |
Definition at line 75 of file animationsolver.h.
| AnimationSolver::AnimationSolver | ( | ) |
Definition at line 14 of file animationsolver.cpp.
| void AnimationSolver::addOverlay | ( | const Skeleton * | sk, |
| uint64_t | time | ||
| ) |
Definition at line 57 of file animationsolver.cpp.
| void AnimationSolver::clearOverlays | ( | ) |
Definition at line 86 of file animationsolver.cpp.
| void AnimationSolver::delOverlay | ( | const Skeleton * | sk | ) |
Definition at line 77 of file animationsolver.cpp.
| void AnimationSolver::delOverlay | ( | std::string_view | sk | ) |
Definition at line 70 of file animationsolver.cpp.
| bool AnimationSolver::hasOverlay | ( | const Skeleton * | sk | ) | const |
Definition at line 50 of file animationsolver.cpp.
| void AnimationSolver::load | ( | Serialize & | fin | ) |
Definition at line 24 of file animationsolver.cpp.
| void AnimationSolver::save | ( | Serialize & | fout | ) | const |
Definition at line 17 of file animationsolver.cpp.
| void AnimationSolver::setSkeleton | ( | const Skeleton * | sk | ) |
Definition at line 45 of file animationsolver.cpp.
| const Animation::Sequence * AnimationSolver::solveAnim | ( | AnimationSolver::Anim | a, |
| WeaponState | st, | ||
| WalkBit | wlk, | ||
| const Pose & | pose | ||
| ) | const |
Definition at line 103 of file animationsolver.cpp.
| const Animation::Sequence * AnimationSolver::solveAnim | ( | Interactive * | inter, |
| AnimationSolver::Anim | a, | ||
| const Pose & | pose | ||
| ) | const |
Definition at line 436 of file animationsolver.cpp.
| const Animation::Sequence * AnimationSolver::solveAnim | ( | std::string_view | scheme, |
| bool | run, | ||
| bool | invest | ||
| ) | const |
Definition at line 416 of file animationsolver.cpp.
| const Animation::Sequence * AnimationSolver::solveAnim | ( | WeaponState | st, |
| WeaponState | cur, | ||
| bool | run | ||
| ) | const |
Definition at line 394 of file animationsolver.cpp.
| const Animation::Sequence * AnimationSolver::solveFrm | ( | std::string_view | format | ) | const |
Definition at line 512 of file animationsolver.cpp.
| const Animation::Sequence * AnimationSolver::solveNext | ( | const Animation::Sequence & | sq | ) | const |
Definition at line 496 of file animationsolver.cpp.
| void AnimationSolver::update | ( | uint64_t | tickCount | ) |
Definition at line 91 of file animationsolver.cpp.