summaryrefslogtreecommitdiff
path: root/src/script/api/script_group.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-15 18:40:15 +0000
committerrubidium <rubidium@openttd.org>2011-12-15 18:40:15 +0000
commit18d929aa21f42f292fd249e6d5feb6bf71ba93ae (patch)
tree5a26d0c7d569a26381b3b3afa83afeac3e315763 /src/script/api/script_group.hpp
parentbb564bc34dd5db62d994eac10f88a81979a0f89c (diff)
downloadopenttd-18d929aa21f42f292fd249e6d5feb6bf71ba93ae.tar.xz
(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
Diffstat (limited to 'src/script/api/script_group.hpp')
-rw-r--r--src/script/api/script_group.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/script/api/script_group.hpp b/src/script/api/script_group.hpp
index 8688ee328..1a549bf53 100644
--- a/src/script/api/script_group.hpp
+++ b/src/script/api/script_group.hpp
@@ -13,6 +13,7 @@
#define SCRIPT_GROUP_HPP
#include "script_vehicle.hpp"
+#include "../../group_type.h"
/**
* Class that handles all group related functions.
@@ -24,10 +25,10 @@ public:
* The group IDs of some special groups.
*/
enum GroupID {
- /* Values are important, as they represent the internal state of the game (see group_type.h). */
- GROUP_ALL = 0xFFFD, ///< All vehicles are in this group.
- GROUP_DEFAULT = 0xFFFE, ///< Vehicles not put in any other group are in this one.
- GROUP_INVALID = 0xFFFF, ///< An invalid group id.
+ /* Note: these values represent part of the in-game static values */
+ GROUP_ALL = ::ALL_GROUP, ///< All vehicles are in this group.
+ GROUP_DEFAULT = ::DEFAULT_GROUP, ///< Vehicles not put in any other group are in this one.
+ GROUP_INVALID = ::INVALID_GROUP, ///< An invalid group id.
};
/**