summaryrefslogtreecommitdiffstats
path: root/src/object/auto/autobase.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-11 17:28:27 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-11 17:28:27 +0200
commita8665d204255b4b0ad9ae6982f77ecd5e053c1b6 (patch)
tree5f7e58785f5175e7f067ffaf8f96d16272c92d1e /src/object/auto/autobase.h
parent8ffdf2583e4ea77731490dcaad51dbc08d7f26fa (diff)
downloadcolobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.gz
colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.bz2
colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.zip
Changed #defined constants to consts; typedef struct -> struct
Diffstat (limited to 'src/object/auto/autobase.h')
-rw-r--r--src/object/auto/autobase.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/object/auto/autobase.h b/src/object/auto/autobase.h
index 1a3623d..513f16e 100644
--- a/src/object/auto/autobase.h
+++ b/src/object/auto/autobase.h
@@ -31,15 +31,16 @@ class CCamera;
class CObject;
-
-#define PARAM_STOP 0 // run=0 -> stops and open
-#define PARAM_LANDING 1 // run=1 -> landing
-#define PARAM_PORTICO 2 // run=2 -> gate on the ground
-#define PARAM_FIXSCENE 3 // run=3 -> open and stops to win / lost
-#define PARAM_TRANSIT1 11 // run=11 -> transit in space
-#define PARAM_TRANSIT2 12 // run=12 -> transit in space
-#define PARAM_TRANSIT3 13 // run=13 -> transit in space
-
+enum AutoBaseParam
+{
+ PARAM_STOP = 0, // run=0 -> stops and open
+ PARAM_LANDING = 1, // run=1 -> landing
+ PARAM_PORTICO = 2, // run=2 -> gate on the ground
+ PARAM_FIXSCENE = 3, // run=3 -> open and stops to win / lost
+ PARAM_TRANSIT1 = 11, // run=11 -> transit in space
+ PARAM_TRANSIT2 = 12, // run=12 -> transit in space
+ PARAM_TRANSIT3 = 13 // run=13 -> transit in space
+};
enum AutoBasePhase
{