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

GuiFunctions::VehicleBuildingGui Class Reference

Inheritance diagram for GuiFunctions::VehicleBuildingGui:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 VehicleBuildingGui ()
bool init (Vehicle *vehicle)
void eval (const MapCoordinate &mc, ContainerBase *subject)
 checks evaluates the field on which the cursor resides

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::VehicleBuildingGui::VehicleBuildingGui  )  [inline]
 

Definition at line 2002 of file guifunctions.cpp.

References GameMap::sigMapDeletion.


Member Function Documentation

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

Definition at line 2083 of file guifunctions.cpp.

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

Referenced by search().

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

Implements GuiFunction.

Definition at line 2025 of file guifunctions.cpp.

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

checks evaluates the field on which the cursor resides

Reimplemented from GuiIconHandler.

Definition at line 2116 of file guifunctions.cpp.

References actmap, beeline(), NewGuiHost::disableButtons(), NewGuiHost::getButton(), Vehicle::getPosition(), GuiIconHandler::host, GuiButton::registerFunc(), search(), PG_Widget::Show(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

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

Implements GuiFunction.

Definition at line 2030 of file guifunctions.cpp.

References actmap, GameMap::cleartemps(), Vehicle::constructvehicle(), evaluateviewcalculation(), ContainerBase::getOwner(), Vehicle::getPosition(), Vehicle::height, logtoreplayinfo(), moveparams, tmoveparams::movestatus, NewGuiHost::popIconHandler(), repaintMap, rpl_buildtnk4, updateFieldInfo, vehicleTypeRepository, MapCoordinate::x, and MapCoordinate::y.

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

Implements GuiFunction.

Definition at line 2045 of file guifunctions.cpp.

References GuiFunctions::buildGuiIcon(), IconRepository::getIcon(), Vehicletype::getImage(), and vehicleTypeRepository.

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

Implements GuiFunction.

Definition at line 2066 of file guifunctions.cpp.

References Resources::energy, ASCString::format(), Resources::material, ContainerBaseType::name, ContainerBaseType::productionCost, and vehicleTypeRepository.

bool GuiFunctions::VehicleBuildingGui::init Vehicle vehicle  ) 
 

Definition at line 2013 of file guifunctions.cpp.

References getNeighbouringFieldCoordinate(), Vehicle::getPosition(), and search().

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

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

Definition at line 2091 of file guifunctions.cpp.

References tfield::a, actmap, addButton(), tfield::building, cgp_forbid_unitunit_construction, GameMap::UnitProduction::check(), fieldvisiblenow(), GameMap::getField(), GameMap::getgameparameter(), GameMap::getvehicletype_byid(), ContainerBaseType::id, Vehicle::typ, GameMap::unitProduction, tfield::vehicle, Vehicle::vehicleconstructable(), and Vehicletype::vehiclesBuildable.

Referenced by eval(), and init().


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