
Public Member Functions | |
| ObjectBuildingGui () | |
| bool | init (Vehicle *vehicle) |
| void | eval (const MapCoordinate &mc, ContainerBase *subject) |
| checks evaluates the field on which the cursor resides | |
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) |
| Surface & | getImage (const MapCoordinate &pos, ContainerBase *subject, int num) |
| ASCString | getName (const MapCoordinate &pos, ContainerBase *subject, int num) |
| bool | checkObject (tfield *fld, ObjectType *objtype, Mode mode) |
| void | search (const MapCoordinate &pos, int &num, int pass) |
| bool | checkForKey (const SDL_KeyboardEvent *key, int modifier, int num) |
| void | addButton (int &num, const MapCoordinate &mc, ContainerBase *subject, int id) |
|
|
Definition at line 1629 of file guifunctions.cpp. |
|
|
Definition at line 1643 of file guifunctions.cpp. References GameMap::sigMapDeletion. |
|
||||||||||||||||||||
|
Definition at line 1824 of file guifunctions.cpp. References NewGuiHost::getButton(), GuiIconHandler::host, GuiButton::registerFunc(), and PG_Widget::Show(). Referenced by search(). |
|
||||||||||||||||
|
Implements GuiFunction. Definition at line 1666 of file guifunctions.cpp. |
|
||||||||||||||||
|
Reimplemented from GuiFunction. Definition at line 1746 of file guifunctions.cpp. |
|
||||||||||||||||
|
Definition at line 1794 of file guifunctions.cpp. References actmap, tfield::bdt, Build, tfield::checkforobject(), ObjectType::getFieldModification(), Vehicle::getMovement(), ContainerBase::getOwner(), Vehicle::getResource(), tfield::getweather(), GameMap::player, and Resources::resource(). Referenced by search(). |
|
||||||||||||
|
checks evaluates the field on which the cursor resides
Reimplemented from GuiIconHandler. Definition at line 1904 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. |
|
||||||||||||||||
|
||||||||||||||||
|
Implements GuiFunction. Definition at line 1754 of file guifunctions.cpp. References GuiFunctions::buildGuiIcon(), IconRepository::getIcon(), ObjectType::getPicture(), and objectTypeRepository. |
|
||||||||||||||||
|
Implements GuiFunction. Definition at line 1774 of file guifunctions.cpp. References ObjectType::build_movecost, ObjectType::buildcost, ASCString::format(), Resources::fuel, Resources::material, ObjectType::name, objectTypeRepository, ObjectType::remove_movecost, and ObjectType::removecost. |
|
|
Definition at line 1654 of file guifunctions.cpp. References getNeighbouringFieldCoordinate(), Vehicle::getPosition(), and search(). Referenced by GuiFunctions::BuildObject::execute(). |
|
||||||||||||||||
1.4.2