summaryrefslogtreecommitdiff
path: root/digital/io-hub/src/apbirthday/candles.hh
diff options
context:
space:
mode:
authorJerome Jutteau2013-03-29 10:11:32 +0100
committerJerome Jutteau2013-03-29 10:11:49 +0100
commitb49d8d7fcb271f855a976125826a5a6f1459ace7 (patch)
tree4b3f1c101d140149000f6906e72851e16d61e2e3 /digital/io-hub/src/apbirthday/candles.hh
parent8e06e04f0a42d2777d34df8bc2b78606e4447686 (diff)
digital/io-hub/src/apbirthday: fix indentation
Diffstat (limited to 'digital/io-hub/src/apbirthday/candles.hh')
-rw-r--r--digital/io-hub/src/apbirthday/candles.hh36
1 files changed, 18 insertions, 18 deletions
diff --git a/digital/io-hub/src/apbirthday/candles.hh b/digital/io-hub/src/apbirthday/candles.hh
index 04345400..5aa917d9 100644
--- a/digital/io-hub/src/apbirthday/candles.hh
+++ b/digital/io-hub/src/apbirthday/candles.hh
@@ -43,40 +43,40 @@
- 11 16 -
- 12 13 14 15 -
- ______ -
-*/
+ */
typedef enum
{
- CANDLE_UNPUNCHED,
- CANDLE_PUNCHED,
- CANDLE_STATE_NB
+ CANDLE_UNPUNCHED,
+ CANDLE_PUNCHED,
+ CANDLE_STATE_NB
} candle_state_t;
typedef enum
{
- FLOOR_NEAR = 0,
- FLOOR_FAR = 1,
- CANDLE_FLOOR_NB
+ FLOOR_NEAR = 0,
+ FLOOR_FAR = 1,
+ CANDLE_FLOOR_NB
} candle_floor_t;
/* XXX use another common type for colors ? */
typedef enum
{
- CANDLE_RED = TEAM_COLOR_RIGHT,
- CANDLE_BLUE = TEAM_COLOR_LEFT,
- CANDLE_WHITE,
- CANDLE_UNKNOWN,
+ CANDLE_RED = TEAM_COLOR_RIGHT,
+ CANDLE_BLUE = TEAM_COLOR_LEFT,
+ CANDLE_WHITE,
+ CANDLE_UNKNOWN,
} candle_color_t;
class Candles
{
- public:
- candle_state_t state[CANDLES_NB];
- candle_color_t color[CANDLES_NB];
- Candles (int calif_mode);
- void blow (int candle);
- void deduce ();
- int actual_pos[CANDLE_FLOOR_NB];
+ public:
+ candle_state_t state[CANDLES_NB];
+ candle_color_t color[CANDLES_NB];
+ Candles (int calif_mode);
+ void blow (int candle);
+ void deduce ();
+ int actual_pos[CANDLE_FLOOR_NB];
};
#endif // candles_hh