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

Public Member Functions

 ObjectBuildingGui ()
 
bool init (Vehicle *vehicle)
 
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 Types

enum  Mode { Build, Remove }
 

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)
 
void addButton (int &num, const MapCoordinate &mc, ContainerBase *subject, int id)
 

Additional Inherited Members

- Protected Attributes inherited from GuiIconHandler
NewGuiHosthost
 

Detailed Description

Definition at line 1403 of file guifunctions.cpp.

Member Enumeration Documentation

Enumerator
Build 
Remove 

Definition at line 1413 of file guifunctions.cpp.

Constructor & Destructor Documentation

GuiFunctions::ObjectBuildingGui::ObjectBuildingGui ( )
inline

Definition at line 1425 of file guifunctions.cpp.

References GameMap::sigMapDeletion.

Member Function Documentation

void GuiFunctions::ObjectBuildingGui::addButton ( int &  num,
const MapCoordinate mc,
ContainerBase subject,
int  id 
)
protected

Definition at line 1555 of file guifunctions.cpp.

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

Referenced by eval().

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

Implements GuiFunction.

Definition at line 1442 of file guifunctions.cpp.

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

Reimplemented from GuiFunction.

Definition at line 1506 of file guifunctions.cpp.

void GuiFunctions::ObjectBuildingGui::eval ( const MapCoordinate pos,
ContainerBase subject 
)
virtual
void GuiFunctions::ObjectBuildingGui::execute ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
protectedvirtual
Surface & GuiFunctions::ObjectBuildingGui::getImage ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
protectedvirtual
ASCString GuiFunctions::ObjectBuildingGui::getName ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
protectedvirtual
bool GuiFunctions::ObjectBuildingGui::init ( Vehicle vehicle)

Definition at line 1435 of file guifunctions.cpp.


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