22 #ifndef LASTEXPRESS_FIGHTER_H 23 #define LASTEXPRESS_FIGHTER_H 25 #include "lastexpress/fight/fight.h" 27 #include "common/array.h" 44 kFightAction101 = 101,
45 kFightActionResetFrame = 102,
46 kFightAction103 = 103,
47 kFightActionWin = 104,
48 kFightActionLost = 105,
49 kFightAction128 = 128,
50 kFightAction129 = 129,
51 kFightAction130 = 130,
52 kFightAction131 = 131,
56 enum FightSequenceType {
57 kFightSequenceType0 = 0,
58 kFightSequenceType1 = 1,
59 kFightSequenceType2 = 2
66 virtual void handleAction(FightAction action);
67 virtual void update();
68 virtual bool canInteract(FightAction action = kFightActionNone);
71 void setSequenceAndDraw(uint32 sequenceIndex, FightSequenceType type);
74 void setOpponent(
Fighter *opponent) { _opponent = opponent; }
75 void setCountdown(int32 countdown) { _countdown = countdown; }
76 void setFight(
Fight *fight) { _fight = fight; }
78 int getCountdown() {
return _countdown; }
79 uint32 getSequenceIndex() {
return _sequenceIndex; }
80 uint32 getField34() {
return _field_34; }
88 uint32 _sequenceIndex;
93 uint32 _sequenceIndex2;
102 bool checkFrame(uint32 val);
111 void update()
override;
119 #endif // LASTEXPRESS_FIGHTER_H Definition: lastexpress.h:69
Definition: animation.h:45
Definition: sequence.h:151
Definition: sequence.h:183
Definition: fighter.h:105