diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-11 17:28:27 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-11 17:28:27 +0200 |
commit | a8665d204255b4b0ad9ae6982f77ecd5e053c1b6 (patch) | |
tree | 5f7e58785f5175e7f067ffaf8f96d16272c92d1e /src/object/motion/motionant.h | |
parent | 8ffdf2583e4ea77731490dcaad51dbc08d7f26fa (diff) | |
download | colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.gz colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.bz2 colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.zip |
Changed #defined constants to consts; typedef struct -> struct
Diffstat (limited to 'src/object/motion/motionant.h')
-rw-r--r-- | src/object/motion/motionant.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/object/motion/motionant.h b/src/object/motion/motionant.h index 084a9a9..dc969fe 100644 --- a/src/object/motion/motionant.h +++ b/src/object/motion/motionant.h @@ -32,19 +32,24 @@ class CBrain; class CPhysics;
class CObject;
+enum MotionAntAction
+{
+ MA_MARCH = 0,
+ MA_STOP = 1,
+ MA_SPEC = 2
+};
-#define MA_MARCH 0
-#define MA_STOP 1
-#define MA_SPEC 2
-
-#define MAS_PREPARE 0
-#define MAS_FIRE 1
-#define MAS_TERMINATE 2
-#define MAS_BURN 3
-#define MAS_RUIN 4
-#define MAS_BACK1 5
-#define MAS_BACK2 6
-#define MAS_BACK3 7
+enum MotionAntSpecialAction
+{
+ MAS_PREPARE = 0,
+ MAS_FIRE = 1,
+ MAS_TERMINATE = 2,
+ MAS_BURN = 3,
+ MAS_RUIN = 4,
+ MAS_BACK1 = 5,
+ MAS_BACK2 = 6,
+ MAS_BACK3 = 7
+};
class CMotionAnt : public CMotion
|