(svn r23521) -Codechange: use the actual enum values from the 'core' in the API when they refer to the in-game values in the cases where that is possible and sensible

This commit is contained in:
rubidium
2011-12-15 18:40:15 +00:00
parent bb564bc34d
commit 18d929aa21
17 changed files with 180 additions and 154 deletions

View File

@@ -45,11 +45,12 @@ public:
* Types of road known to the game.
*/
enum RoadType {
/* Values are important, as they represent the internal state of the game. */
ROADTYPE_ROAD = 0, ///< Build road objects.
ROADTYPE_TRAM = 1, ///< Build tram objects.
/* Note: these values represent part of the in-game RoadType enum */
ROADTYPE_ROAD = ::ROADTYPE_ROAD, ///< Build road objects.
ROADTYPE_TRAM = ::ROADTYPE_TRAM, ///< Build tram objects.
ROADTYPE_INVALID = -1, ///< Invalid RoadType.
/* Custom added value, only valid for this API */
ROADTYPE_INVALID = -1, ///< Invalid RoadType.
};
/**