~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 *);
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) { }