From 94dd36d1eceb487616f9f0ea260fbe00d84cc267 Mon Sep 17 00:00:00 2001 From: truebrain Date: Fri, 16 Jan 2009 00:05:26 +0000 Subject: (svn r15101) -Change [API CHANGE]: more consistant naming for consts: INVALID_TOWN_RATING -> TOWN_RATING_INVALID INVALID_TRANSPORT -> TRANSPORT_INVALID INVALID_ORDER -> ORDER_INVALID INVALID_GROUP -> GROUP_INVALID GROUP_ALL/DEFAULT -> ALL/DEFAULT_GROUP VEHICLE_RAIL/ROAD/.. -> VT_RAIL/ROAD/.. MY_COMPANY -> COMPANY_SELF FIRST/LAST/INVALID_COMPANY -> COMPANY_FIRST/LAST/INVALID --- src/ai/api/ai_town.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ai/api/ai_town.hpp') diff --git a/src/ai/api/ai_town.hpp b/src/ai/api/ai_town.hpp index 94ba91e17..f9152106f 100644 --- a/src/ai/api/ai_town.hpp +++ b/src/ai/api/ai_town.hpp @@ -81,7 +81,7 @@ public: 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. - INVALID_TOWN_RATING = -1, ///< The town rating for invalid towns/companies. + TOWN_RATING_INVALID = -1, ///< The town rating for invalid towns/companies. }; /** @@ -228,7 +228,7 @@ public: * @param town_id The town to check. * @pre IsValidTown(town_id). * @return The company that has the exclusive rights. The value - * AICompany::INVALID_COMPANY means that there are currently no + * AICompany::COMPANY_INVALID means that there are currently no * exclusive rights given out to anyone. */ static AICompany::CompanyID GetExclusiveRightsCompany(TownID town_id); @@ -267,7 +267,7 @@ public: * @param town_id The town to get the rating for. * @param company_id The company to get the rating for. * @pre IsValidTown(town_id). - * @pre AICompany.ResolveCompanyID(company) != AICompany::INVALID_COMPANY. + * @pre AICompany.ResolveCompanyID(company) != AICompany::COMPANY_INVALID. * @return The rating as shown to humans. */ static TownRating GetRating(TownID town_id, AICompany::CompanyID company_id); -- cgit v1.2.3-54-g00ecf