diff options
author | rubidium <rubidium@openttd.org> | 2010-08-03 08:58:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-03 08:58:12 +0000 |
commit | 3bfe26c69d10c8395057a0fe168906182b563769 (patch) | |
tree | c2dc97d833168bb2935913e3de297fe003ab6703 /src/unmovable.h | |
parent | f812e800028ae4fc65230da398c77d5d0fd695e7 (diff) | |
download | openttd-3bfe26c69d10c8395057a0fe168906182b563769.tar.xz |
(svn r20337) -Codechange: unify the construction of objects on the map
Diffstat (limited to 'src/unmovable.h')
-rw-r--r-- | src/unmovable.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/unmovable.h b/src/unmovable.h index e0cf4e597..8f3431e66 100644 --- a/src/unmovable.h +++ b/src/unmovable.h @@ -16,8 +16,26 @@ #include "strings_type.h" #include "unmovable_type.h" +/** + * Update the CompanyHQ to the state associated with the given score + * @param c The company to (possibly) update the HQ of. + * @param score The current (performance) score of the company. + * @pre c != NULL + */ void UpdateCompanyHQ(Company *c, uint score); +/** + * Actually build the unmovable 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 index A (generic) index to be stored on the tile, e.g. TownID for statues. + * @pre All preconditions for building the object at that location + * are met, e.g. slope and clearness of tiles are checked. + */ +void BuildUnmovable(UnmovableType type, TileIndex tile, CompanyID owner = OWNER_NONE, uint index = 0); + + /** An (unmovable) object that isn't use for transport, industries or houses. */ struct UnmovableSpec { StringID name; ///< The name for this object. |