ScummVM
LastExpress::Fight Class Reference

#include <fight.h>

+ Inheritance diagram for LastExpress::Fight:
+ Collaboration diagram for LastExpress::Fight:

Classes

struct  FightData
 

Public Types

enum  FightEndType { kFightEndWin = 0, kFightEndLost = 1, kFightEndExit = 2 }
 
- Public Types inherited from LastExpress::EventHandler
typedef Common::Functor1< const Common::Event &, void > EventFunction
 

Public Member Functions

 Fight (LastExpressEngine *engine)
 
 ~Fight () override
 
FightEndType setup (FightType type)
 
void eventMouse (const Common::Event &ev) override
 
void eventTick (const Common::Event &ev) override
 
bool isRunning ()
 
void setRunningState (bool state)
 
void bailout (FightEndType type)
 
void setStopped ()
 
void resetState ()
 
void setEndType (FightEndType endType)
 
- Public Member Functions inherited from LastExpress::EventHandler
virtual ~EventHandler ()
 

Private Member Functions

void handleTick (const Common::Event &ev, bool unknown)
 
void loadData (FightType type)
 
void clearData ()
 
void setOpponents ()
 

Private Attributes

LastExpressEngine_engine
 
FightData_data
 
FightEndType _endType
 
int _state
 
bool _handleTimer
 

Detailed Description

Definition at line 68 of file fight.h.

Member Enumeration Documentation

◆ FightEndType

Enumerator
kFightEndWin 
kFightEndLost 
kFightEndExit 

Definition at line 70 of file fight.h.

Constructor & Destructor Documentation

◆ Fight()

LastExpress::Fight::Fight ( LastExpressEngine engine)

Definition at line 65 of file fight.cpp.

◆ ~Fight()

LastExpress::Fight::~Fight ( )
override

Definition at line 68 of file fight.cpp.

Member Function Documentation

◆ bailout()

void LastExpress::Fight::bailout ( FightEndType  type)

Definition at line 301 of file fight.cpp.

◆ clearData()

void LastExpress::Fight::clearData ( )
private

Definition at line 310 of file fight.cpp.

◆ eventMouse()

void LastExpress::Fight::eventMouse ( const Common::Event ev)
overridevirtual

Reimplemented from LastExpress::EventHandler.

Definition at line 79 of file fight.cpp.

◆ eventTick()

void LastExpress::Fight::eventTick ( const Common::Event ev)
overridevirtual

Reimplemented from LastExpress::EventHandler.

Definition at line 158 of file fight.cpp.

◆ handleTick()

void LastExpress::Fight::handleTick ( const Common::Event ev,
bool  unknown 
)
private

Definition at line 162 of file fight.cpp.

◆ isRunning()

bool LastExpress::Fight::isRunning ( )
inline

Definition at line 85 of file fight.h.

◆ loadData()

void LastExpress::Fight::loadData ( FightType  type)
private

Definition at line 323 of file fight.cpp.

◆ resetState()

void LastExpress::Fight::resetState ( )
inline

Definition at line 89 of file fight.h.

◆ setEndType()

void LastExpress::Fight::setEndType ( FightEndType  endType)
inline

Definition at line 90 of file fight.h.

◆ setOpponents()

void LastExpress::Fight::setOpponents ( )
private

Definition at line 403 of file fight.cpp.

◆ setRunningState()

void LastExpress::Fight::setRunningState ( bool  state)
inline

Definition at line 86 of file fight.h.

◆ setStopped()

void LastExpress::Fight::setStopped ( )

Definition at line 296 of file fight.cpp.

◆ setup()

Fight::FightEndType LastExpress::Fight::setup ( FightType  type)

Definition at line 200 of file fight.cpp.

Member Data Documentation

◆ _data

FightData* LastExpress::Fight::_data
private

Definition at line 108 of file fight.h.

◆ _endType

FightEndType LastExpress::Fight::_endType
private

Definition at line 109 of file fight.h.

◆ _engine

LastExpressEngine* LastExpress::Fight::_engine
private

Definition at line 107 of file fight.h.

◆ _handleTimer

bool LastExpress::Fight::_handleTimer
private

Definition at line 112 of file fight.h.

◆ _state

int LastExpress::Fight::_state
private

Definition at line 110 of file fight.h.


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