diff options
author | smatz <smatz@openttd.org> | 2009-11-24 21:18:11 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-11-24 21:18:11 +0000 |
commit | f0c64208cf917ff2a1f59c7640eac7e9fb80d605 (patch) | |
tree | 46ff00e56156495fa95821a99cf4f3d00a0acb49 /src/town_type.h | |
parent | 8d6e323ef80fcb49c4fc8417564d1e2ef7797a73 (diff) | |
download | openttd-f0c64208cf917ff2a1f59c7640eac7e9fb80d605.tar.xz |
(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)
Diffstat (limited to 'src/town_type.h')
-rw-r--r-- | src/town_type.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/town_type.h b/src/town_type.h index dd2220b66..266e95214 100644 --- a/src/town_type.h +++ b/src/town_type.h @@ -87,10 +87,20 @@ enum TownLayout { NUM_TLS, ///< Number of town layouts }; - /** It needs to be 8bits, because we save and load it as such */ typedef SimpleTinyEnumT<TownLayout, byte> TownLayoutByte; // typedefing-enumification of TownLayout +/** Town founding setting values */ +enum TownFounding { + TF_BEGIN = 0, ///< Used for iterations and limit testing + TF_FORBIDDEN = 0, ///< Forbidden + TF_ALLOWED, ///< Allowed + TF_CUSTOM_LAYOUT, ///< Allowed, with custom town layout + TF_END, ///< Used for iterations and limit testing +}; +/** It needs to be 8bits, because we save and load it as such */ +typedef SimpleTinyEnumT<TownFounding, byte> TownFoundingByte; + enum { MAX_LENGTH_TOWN_NAME_BYTES = 31, ///< The maximum length of a town name in bytes including '\0' MAX_LENGTH_TOWN_NAME_PIXELS = 130, ///< The maximum length of a town name in pixels |