2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2010-08-08 10:59:30 +00:00
|
|
|
/** @file object.h Functions related to objects. */
|
2007-04-04 04:08:47 +00:00
|
|
|
|
2010-08-08 10:59:30 +00:00
|
|
|
#ifndef OBJECT_H
|
|
|
|
#define OBJECT_H
|
2006-03-31 08:59:19 +00:00
|
|
|
|
2010-08-27 22:21:23 +00:00
|
|
|
#include "tile_type.h"
|
|
|
|
#include "company_type.h"
|
2010-08-08 10:59:30 +00:00
|
|
|
#include "object_type.h"
|
2009-02-05 03:41:42 +00:00
|
|
|
|
2010-08-03 12:36:40 +00:00
|
|
|
void UpdateCompanyHQ(TileIndex tile, uint score);
|
2006-03-31 08:59:19 +00:00
|
|
|
|
2019-04-10 21:07:06 +00:00
|
|
|
void BuildObject(ObjectType type, TileIndex tile, CompanyID owner = OWNER_NONE, struct Town *town = nullptr, uint8 view = 0);
|
2010-08-03 08:58:12 +00:00
|
|
|
|
2021-03-23 19:16:27 +00:00
|
|
|
Window *ShowBuildObjectPicker();
|
2010-08-28 19:43:41 +00:00
|
|
|
|
2010-08-08 10:59:30 +00:00
|
|
|
#endif /* OBJECT_H */
|