ScummVM API documentation
LastExpress::Fighter Class Reference
Inheritance diagram for LastExpress::Fighter:
LastExpress::FighterPlayerAnna LastExpress::FighterPlayerIvo LastExpress::FighterPlayerMilos LastExpress::FighterPlayerSalko LastExpress::FighterPlayerVesna LastExpress::Opponent LastExpress::FighterOpponentAnna LastExpress::FighterOpponentIvo LastExpress::FighterOpponentMilos LastExpress::FighterOpponentSalko LastExpress::FighterOpponentVesna

Public Types

enum  FightAction {
  kFightActionNone = 0, kFightAction1 = 1, kFightAction2 = 2, kFightAction3 = 3,
  kFightAction4 = 4, kFightAction5 = 5, kFightAction101 = 101, kFightActionResetFrame = 102,
  kFightAction103 = 103, kFightActionWin = 104, kFightActionLost = 105, kFightAction128 = 128,
  kFightAction129 = 129, kFightAction130 = 130, kFightAction131 = 131, kFightAction132 = 132
}
 
enum  FightSequenceType { kFightSequenceType0 = 0, kFightSequenceType1 = 1, kFightSequenceType2 = 2 }
 

Public Member Functions

 Fighter (LastExpressEngine *engine)
 
virtual void handleAction (FightAction action)
 
virtual void update ()
 
virtual bool canInteract (FightAction action=kFightActionNone)
 
void setSequenceAndDraw (uint32 sequenceIndex, FightSequenceType type)
 
void setOpponent (Fighter *opponent)
 
void setCountdown (int32 countdown)
 
void setFight (Fight *fight)
 
int getCountdown ()
 
uint32 getSequenceIndex ()
 
uint32 getField34 ()
 

Protected Member Functions

void draw ()
 
void process ()
 
bool checkFrame (uint32 val)
 

Protected Attributes

LastExpressEngine_engine
 
Fight_fight
 
Fighter_opponent
 
Sequence_sequence
 
SequenceFrame_frame
 
uint32 _sequenceIndex
 
Common::Array< Sequence * > _sequences
 
uint32 _frameIndex
 
uint32 _field_24
 
FightAction _action
 
uint32 _sequenceIndex2
 
int32 _countdown
 
uint32 _field_34
 

The documentation for this class was generated from the following file: