X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FAttackAnimation.h;fp=src%2Fbattle%2FAttackAnimation.h;h=7758bb89594989f5828cb10ccdc2d8541742cf3e;hb=e52f2d15302057cbcc4a2dcca1ae9b25dc12dbcd;hp=a8ec014ecc43de3a3c003a75a10711b168d19d2d;hpb=7ccc3e8a2a467232383bb5896ed6c528da89add2;p=l2e.git diff --git a/src/battle/AttackAnimation.h b/src/battle/AttackAnimation.h index a8ec014..7758bb8 100644 --- a/src/battle/AttackAnimation.h +++ b/src/battle/AttackAnimation.h @@ -29,12 +29,13 @@ public: ~AttackAnimation(); public: - void Wait(int ms); - void WaitForAnimation(); + void StartTimer(int ms); void PlayAttackAnimation(); void PlaySpellAnimation(); void PlayTargetAnimation(graphics::Animation *); void PlayFullscreenAnimation(graphics::Animation *); + void WaitForTimer(); + void WaitForAnimations(); public: void Start(BattleState *, app::State *); @@ -44,22 +45,24 @@ public: private: bool ExecuteCommand(); - - bool ExecuteWait(); - bool ExecuteWaitAnimation(); + bool ExecuteStartTimer(); bool ExecuteAttackAnimation(); bool ExecuteSpellAnimation(); bool ExecuteTargetAnimation(); bool ExecuteFullscreenAnimation(); + bool ExecuteWaitTimer(); + bool ExecuteWaitAnimations(); private: enum Command { - WAIT, - WAIT_ANIMATION, + NOOP, + START_TIMER, ATTACK_ANIMATION, SPELL_ANIMATION, TARGET_ANIMATION, FULLSCREEN_ANIMATION, + WAIT_TIMER, + WAIT_ANIMATIONS, }; union Code { Code(Command c) : command(c) { }