Advanced Strategic Command
Public Member Functions | List of all members
GuiFunctions::PowerSwitch Class Reference
Inheritance diagram for GuiFunctions::PowerSwitch:
Inheritance graph
[legend]

Public Member Functions

 PowerSwitch (bool state)
 
bool available (const MapCoordinate &pos, ContainerBase *subject, int num)
 
bool checkForKey (const SDL_KeyboardEvent *key, int modifier, int num)
 
void execute (const MapCoordinate &pos, ContainerBase *subject, int num)
 
- Public Member Functions inherited from GuiFunction
virtual SurfacegetImage (const MapCoordinate &pos, ContainerBase *subject, int num)=0
 
virtual ASCString getName (const MapCoordinate &pos, ContainerBase *subject, int num)=0
 
virtual ~GuiFunction ()
 

Detailed Description

Definition at line 624 of file guifunctions.cpp.

Constructor & Destructor Documentation

GuiFunctions::PowerSwitch::PowerSwitch ( bool  state)
inline

Definition at line 630 of file guifunctions.cpp.

Member Function Documentation

bool GuiFunctions::PowerSwitch::available ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
inlinevirtual
bool GuiFunctions::PowerSwitch::checkForKey ( const SDL_KeyboardEvent *  key,
int  modifier,
int  num 
)
inlinevirtual

Reimplemented from GuiFunction.

Reimplemented in GuiFunctions::PowerOff.

Definition at line 642 of file guifunctions.cpp.

void GuiFunctions::PowerSwitch::execute ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
inlinevirtual

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