Go to the documentation of this file.
1 /* $Id: object.h 27346 2015-07-28 18:20:54Z alberth $ */
3 /*
4  * This file is part of OpenTTD.
5  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <>.
8  */
12 #ifndef OBJECT_H
13 #define OBJECT_H
15 #include "tile_type.h"
16 #include "company_type.h"
17 #include "object_type.h"
19 void UpdateCompanyHQ(TileIndex tile, uint score);
21 void BuildObject(ObjectType type, TileIndex tile, CompanyID owner = OWNER_NONE, struct Town *town = NULL, uint8 view = 0);
25 #endif /* OBJECT_H */
Types related to object tiles.
void UpdateCompanyHQ(TileIndex tile, uint score)
Update the CompanyHQ to the state associated with the given score.
Definition: object_cmd.cpp:157
The tile has no ownership.
Definition: company_type.h:27
uint16 ObjectType
Types of objects.
Definition: object_type.h:16
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:80
Town data structure.
Definition: town.h:55
void BuildObject(ObjectType type, TileIndex tile, CompanyID owner=OWNER_NONE, struct Town *town=NULL, uint8 view=0)
Actually build the object.
Definition: object_cmd.cpp:85
Types related to companies.
void ShowBuildObjectPicker()
Show our object picker.
Definition: object_gui.cpp:527
Enum for all companies/owners.
Definition: company_type.h:20
Types related to tiles.