Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GuiFunctions::BuildingConstruction Class Reference

Inheritance diagram for GuiFunctions::BuildingConstruction:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BuildingConstruction ()
bool init (Vehicle *vehicle)
bool setup ()
void eval (const MapCoordinate &mc, ContainerBase *subject)
 checks evaluates the field on which the cursor resides
bool setBuilding (const MapCoordinate &pos, ContainerBase *subject, int id)

Protected Member Functions

bool available (const MapCoordinate &pos, ContainerBase *subject, int id)
void execute (const MapCoordinate &pos, ContainerBase *subject, int id)
SurfacegetImage (const MapCoordinate &pos, ContainerBase *subject, int id)
ASCString getName (const MapCoordinate &pos, ContainerBase *subject, int id)
void search (const MapCoordinate &pos, int &num, int pass)
void addButton (int &num, const MapCoordinate &mc, ContainerBase *subject, int id)

Constructor & Destructor Documentation

GuiFunctions::BuildingConstruction::BuildingConstruction  )  [inline]
 

Definition at line 2213 of file guifunctions.cpp.

References GameMap::sigMapDeletion.


Member Function Documentation

void GuiFunctions::BuildingConstruction::addButton int &  num,
const MapCoordinate mc,
ContainerBase subject,
int  id
[protected]
 

Definition at line 2485 of file guifunctions.cpp.

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

Referenced by eval(), and setup().

bool GuiFunctions::BuildingConstruction::available const MapCoordinate pos,
ContainerBase subject,
int  id
[protected, virtual]
 

Implements GuiFunction.

Definition at line 2261 of file guifunctions.cpp.

References actmap, GameMap::getField(), moveparams, and tmoveparams::movestatus.

void GuiFunctions::BuildingConstruction::eval const MapCoordinate mc,
ContainerBase subject
[virtual]
 

checks evaluates the field on which the cursor resides

Reimplemented from GuiIconHandler.

Definition at line 2542 of file guifunctions.cpp.

References addButton(), NewGuiHost::disableButtons(), NewGuiHost::getButton(), GuiIconHandler::host, moveparams, tmoveparams::movestatus, GuiButton::registerFunc(), and PG_Widget::Show().

Referenced by execute(), and setBuilding().

void GuiFunctions::BuildingConstruction::execute const MapCoordinate pos,
ContainerBase subject,
int  id
[protected, virtual]
 

Implements GuiFunction.

Definition at line 2300 of file guifunctions.cpp.

References actmap, Vehicle::attacked, buildingTypeRepository, cgp_building_fuel_factor, cgp_building_material_factor, GameMap::cleartemps(), ContainerBase::color, computeview(), displaymessage(), BuildingType::entry, eval(), BuildingType::fieldExists(), Resources::fuel, GameMap::getField(), BuildingType::getFieldCoordinate(), GameMap::getgameparameter(), Vehicle::getResource(), logtoreplayinfo(), Resources::material, moveparams, tmoveparams::movestatus, Vehicle::networkid, NewGuiHost::popIconHandler(), ContainerBaseType::productionCost, putbuilding2(), repaintMap, rpl_putbuilding2, setBuilding(), Vehicle::setMovement(), and updateFieldInfo.

Surface & GuiFunctions::BuildingConstruction::getImage const MapCoordinate pos,
ContainerBase subject,
int  id
[protected, virtual]
 

Implements GuiFunction.

Definition at line 2438 of file guifunctions.cpp.

References IconRepository::getIcon().

ASCString GuiFunctions::BuildingConstruction::getName const MapCoordinate pos,
ContainerBase subject,
int  id
[protected, virtual]
 

Implements GuiFunction.

Definition at line 2468 of file guifunctions.cpp.

References buildingTypeRepository, ASCString::format(), Resources::fuel, Resources::material, ContainerBaseType::name, and ContainerBaseType::productionCost.

bool GuiFunctions::BuildingConstruction::init Vehicle vehicle  ) 
 

Definition at line 2225 of file guifunctions.cpp.

References Vehicle::buildingconstructable(), buildingTypeRepository, moveparams, and tmoveparams::movestatus.

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

void GuiFunctions::BuildingConstruction::search const MapCoordinate pos,
int &  num,
int  pass
[protected]
 

Definition at line 2493 of file guifunctions.cpp.

References tfield::a, actmap, tfield::bdt, tfield::building, buildingTypeRepository, cbbuildingentry, chfahrend, GameMap::getField(), and getTerrainBitType().

Referenced by setBuilding().

bool GuiFunctions::BuildingConstruction::setBuilding const MapCoordinate pos,
ContainerBase subject,
int  id
 

Definition at line 2278 of file guifunctions.cpp.

References actmap, GameMap::cleartemps(), dispmessage2(), eval(), getNeighbouringFieldCoordinate(), Vehicle::getPosition(), moveparams, tmoveparams::movestatus, repaintMap, and search().

Referenced by GuiFunctions::ConstructBuilding::execute(), and execute().

bool GuiFunctions::BuildingConstruction::setup  ) 
 

Definition at line 2241 of file guifunctions.cpp.

References addButton(), Vehicle::buildingconstructable(), buildingTypeRepository, NewGuiHost::disableButtons(), NewGuiHost::getButton(), Vehicle::getPosition(), GuiIconHandler::host, moveparams, tmoveparams::movestatus, GuiButton::registerFunc(), and PG_Widget::Show().

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:22:56 2008 for Advanced Strategic Command by  doxygen 1.4.2