31 #ifndef CRAB_FIGHTMOVES_H 32 #define CRAB_FIGHTMOVES_H 34 #include "crab/timer.h" 35 #include "crab/animation/fightmove.h" 39 namespace pyrodactyl {
41 enum FrameUpdateResult {
48 const uint SPRITE_STATE_OVERRIDE = std::numeric_limits<uint>::max();
67 uint _frameCur, _frameTotal;
78 void load(rapidxml::xml_node<char> *node);
83 FrameUpdateResult updateFrame(
const Direction &d);
86 uint findMove(
const pyrodactyl::input::FightAnimationType &type,
const int &state);
93 return _frameCur >= _frameTotal;
96 void frameIndex(uint val) {
101 input = _move[_cur]._input;
105 return _cur >= 0 && (uint)_cur < _move.
size();
109 return _move.
empty();
112 bool flip(TextureFlipType &flip, Direction d);
115 return _move[_cur]._frames[d]._shadow;
133 #endif // CRAB_FIGHTMOVES_H
Definition: fightmove.h:41
Definition: GameEventInfo.h:44
bool empty() const
Definition: array.h:351
Definition: fightmoves.h:50
Definition: fightanim.h:44
size_type size() const
Definition: array.h:315
Definition: moveeffect.h:37