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

Public Member Functions

 AttackGui ()
 
void setupWeapons (AttackCommand *va)
 
void eval (const MapCoordinate &mc, ContainerBase *subject)
 checks evaluates the field on which the cursor resides More...
 
- Public Member Functions inherited from GuiIconHandler
 GuiIconHandler ()
 
void registerUserFunction (GuiFunction *function)
 registers a user function. More...
 
virtual bool checkForKey (const SDL_KeyboardEvent *key, int modifier)
 
virtual ~GuiIconHandler ()
 
- Public Member Functions inherited from GuiFunction
virtual ~GuiFunction ()
 

Protected Member Functions

bool available (const MapCoordinate &pos, ContainerBase *subject, int num)
 
void execute (const MapCoordinate &pos, ContainerBase *subject, int num)
 
SurfacegetImage (const MapCoordinate &pos, ContainerBase *subject, int num)
 
ASCString getName (const MapCoordinate &pos, ContainerBase *subject, int num)
 
bool checkForKey (const SDL_KeyboardEvent *key, int modifier, int num)
 

Additional Inherited Members

- Protected Attributes inherited from GuiIconHandler
NewGuiHosthost
 

Detailed Description

Definition at line 75 of file guifunctions.cpp.

Constructor & Destructor Documentation

GuiFunctions::AttackGui::AttackGui ( )
inline

Definition at line 92 of file guifunctions.cpp.

References GameMap::sigMapDeletion.

Member Function Documentation

bool GuiFunctions::AttackGui::available ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
protectedvirtual

Implements GuiFunction.

Definition at line 149 of file guifunctions.cpp.

bool GuiFunctions::AttackGui::checkForKey ( const SDL_KeyboardEvent *  key,
int  modifier,
int  num 
)
protectedvirtual

Reimplemented from GuiFunction.

Definition at line 103 of file guifunctions.cpp.

void GuiFunctions::AttackGui::eval ( const MapCoordinate pos,
ContainerBase subject 
)
virtual

checks evaluates the field on which the cursor resides

Reimplemented from GuiIconHandler.

Definition at line 245 of file guifunctions.cpp.

References NewGuiHost::disableButtons(), NewGuiHost::getButton(), GuiIconHandler::host, and GuiButton::registerFunc().

void GuiFunctions::AttackGui::execute ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
protectedvirtual
Surface & GuiFunctions::AttackGui::getImage ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
protectedvirtual
ASCString GuiFunctions::AttackGui::getName ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
protectedvirtual
void GuiFunctions::AttackGui::setupWeapons ( AttackCommand va)
inline

Definition at line 95 of file guifunctions.cpp.

References NewGuiHost::pendingCommand.

Referenced by GuiFunctions::Attack::execute().


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