Files
@ r16929:46400c333b5b
Branch filter:
Location: cpp/openttd-patchpack/source/src/object.h - annotation
r16929:46400c333b5b
1.6 KiB
text/x-c
(svn r21674) -Fix: for Mac OS X %p seems to add "x0", so filter that out for the regression test comparison
r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15940:064272152529 r15940:064272152529 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r15788:b6c01baeb166 r16710:faf33b3a6228 r15734:ae8e2e185874 r15734:ae8e2e185874 r15734:ae8e2e185874 r16710:faf33b3a6228 r15734:ae8e2e185874 r15972:6463015373ad r15972:6463015373ad r15972:6463015373ad r15734:ae8e2e185874 | /* $Id$ */
/*
* 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/>.
*/
/** @file object.h Functions related to objects. */
#ifndef OBJECT_H
#define OBJECT_H
#include "tile_type.h"
#include "company_type.h"
#include "object_type.h"
/**
* Update the CompanyHQ to the state associated with the given score
* @param tile The (northern) tile of the company HQ, or INVALID_TILE.
* @param score The current (performance) score of the company.
*/
void UpdateCompanyHQ(TileIndex tile, uint score);
/**
* Actually build the object.
* @param type The type of object to build.
* @param tile The tile to build the northern tile of the object on.
* @param owner The owner of the object.
* @param town Town the tile is related with.
* @param view The view for the object.
* @pre All preconditions for building the object at that location
* are met, e.g. slope and clearness of tiles are checked.
*/
void BuildObject(ObjectType type, TileIndex tile, CompanyID owner = OWNER_NONE, struct Town *town = NULL, uint8 view = 0);
void PlaceProc_Object(TileIndex tile);
void ShowBuildObjectPicker(struct Window *w);
#endif /* OBJECT_H */
|