summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_town.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-19 09:01:34 +0000
committeryexo <yexo@openttd.org>2009-02-19 09:01:34 +0000
commit459a855e6074bca02a7aca174ab37778acc9f55d (patch)
tree6aae9b77e5e75e74e7759c8d491e82f67ffbc901 /src/ai/api/ai_town.hpp
parentc0e7ddeb9ee8892103a1314dac25e0d7250e6af4 (diff)
downloadopenttd-459a855e6074bca02a7aca174ab37778acc9f55d.tar.xz
(svn r15520) -Cleanup [NoAI]: Fix some typos, unify the comment style and update some documentation since a few enums have been renamed.
Diffstat (limited to 'src/ai/api/ai_town.hpp')
-rw-r--r--src/ai/api/ai_town.hpp33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/ai/api/ai_town.hpp b/src/ai/api/ai_town.hpp
index c132beea3..c6476145b 100644
--- a/src/ai/api/ai_town.hpp
+++ b/src/ai/api/ai_town.hpp
@@ -72,16 +72,16 @@ public:
* Different ratings one could have in a town.
*/
enum TownRating {
- TOWN_RATING_NONE, ///< The company got no rating in the town.
- TOWN_RATING_APPALLING, ///< The company got an appalling rating in the town .
- TOWN_RATING_VERY_POOR, ///< The company got an very poor rating in the town.
- TOWN_RATING_POOR, ///< The company got an poor rating in the town.
- TOWN_RATING_MEDIOCRE, ///< The company got an mediocre rating in the town.
- TOWN_RATING_GOOD, ///< The company got an good rating in the town.
- TOWN_RATING_VERY_GOOD, ///< The company got an very good rating in the town.
- TOWN_RATING_EXCELLENT, ///< The company got an excellent rating in the town.
- TOWN_RATING_OUTSTANDING, ///< The company got an outstanding rating in the town.
- TOWN_RATING_INVALID = -1, ///< The town rating for invalid towns/companies.
+ TOWN_RATING_NONE, //!< The company got no rating in the town.
+ TOWN_RATING_APPALLING, //!< The company got an appalling rating in the town .
+ TOWN_RATING_VERY_POOR, //!< The company got an very poor rating in the town.
+ TOWN_RATING_POOR, //!< The company got an poor rating in the town.
+ TOWN_RATING_MEDIOCRE, //!< The company got an mediocre rating in the town.
+ TOWN_RATING_GOOD, //!< The company got an good rating in the town.
+ TOWN_RATING_VERY_GOOD, //!< The company got an very good rating in the town.
+ TOWN_RATING_EXCELLENT, //!< The company got an excellent rating in the town.
+ TOWN_RATING_OUTSTANDING, //!< The company got an outstanding rating in the town.
+ TOWN_RATING_INVALID = -1, //!< The town rating for invalid towns/companies.
};
/**
@@ -89,16 +89,15 @@ public:
*/
enum RoadLayout {
/* Order IS important, as it matches an in-game value */
- ROAD_LAYOUT_ORIGINAL, ///< Original algorithm (min. 1 distance between roads).
- ROAD_LAYOUT_BETTER_ROADS, ///< Extended original algorithm (min. 2 distance between roads).
- ROAD_LAYOUT_2x2, ///< Geometric 2x2 grid algorithm
- ROAD_LAYOUT_3x3, ///< Geometric 3x3 grid algorithm
- ROAD_LAYOUT_INVALID = -1, ///< The layout for invalid towns.
+ ROAD_LAYOUT_ORIGINAL, //!< Original algorithm (min. 1 distance between roads).
+ ROAD_LAYOUT_BETTER_ROADS, //!< Extended original algorithm (min. 2 distance between roads).
+ ROAD_LAYOUT_2x2, //!< Geometric 2x2 grid algorithm
+ ROAD_LAYOUT_3x3, //!< Geometric 3x3 grid algorithm
+ ROAD_LAYOUT_INVALID = -1, //!< The layout for invalid towns.
};
/**
- * Gets the number of towns. This is different than GetMaxTownID()
- * because of the way OpenTTD works internally.
+ * Gets the number of towns.
* @return The number of towns.
* @post Return value is always non-negative.
*/