|
OpenTTD
|
Functions related to objects. More...
Go to the source code of this file.
Functions | |
| void | UpdateCompanyHQ (TileIndex tile, uint score) |
| Update the CompanyHQ to the state associated with the given score. More... | |
| void | BuildObject (ObjectType type, TileIndex tile, CompanyID owner=OWNER_NONE, struct Town *town=NULL, uint8 view=0) |
| Actually build the object. More... | |
| void | ShowBuildObjectPicker () |
| Show our object picker. More... | |
Functions related to objects.
Definition in file object.h.
| void BuildObject | ( | ObjectType | type, |
| TileIndex | tile, | ||
| CompanyID | owner, | ||
| Town * | town, | ||
| uint8 | view | ||
| ) |
Actually build the object.
| type | The type of object to build. |
| tile | The tile to build the northern tile of the object on. |
| owner | The owner of the object. |
| town | Town the tile is related with. |
| view | The view for the object. |
Definition at line 85 of file object_cmd.cpp.
References _date, Object::build_date, CalcClosestTownFromTile(), Object::colour, GB(), ObjectSpec::Get(), HasBit(), Object::location, Object::Object(), OWNER_NONE, ObjectSpec::size, Object::town, Object::type, and Object::view.
Referenced by TryBuildTransmitter().
| void ShowBuildObjectPicker | ( | ) |
Show our object picker.
Definition at line 524 of file object_gui.cpp.
| void UpdateCompanyHQ | ( | TileIndex | tile, |
| uint | score | ||
| ) |
Update the CompanyHQ to the state associated with the given score.
| tile | The (northern) tile of the company HQ, or INVALID_TILE. |
| score | The current (performance) score of the company. |
Definition at line 157 of file object_cmd.cpp.
References GetCompanyHQSize, IncreaseCompanyHQSize, and INVALID_TILE.