diff options
Diffstat (limited to 'pacman-c++/constants.h')
| -rw-r--r-- | pacman-c++/constants.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h index f0e7903..3d78d1d 100644 --- a/pacman-c++/constants.h +++ b/pacman-c++/constants.h | |||
| @@ -34,15 +34,17 @@ namespace Transmission | |||
| 34 | typedef unsigned int field_t; | 34 | typedef unsigned int field_t; |
| 35 | typedef unsigned int mask_t; | 35 | typedef unsigned int mask_t; |
| 36 | 36 | ||
| 37 | const field_t none = 0; | ||
| 37 | const field_t block = (1 << 3); | 38 | const field_t block = (1 << 3); |
| 38 | const field_t bonuspoint = (1 << 4); | 39 | const field_t point = (1 << 4); |
| 39 | const field_t pacman = (1 << 5); | 40 | const field_t bonuspoint = (1 << 5); |
| 41 | const field_t pacman = (1 << 6); | ||
| 40 | 42 | ||
| 41 | const field_t direction_none = 0; | 43 | const field_t direction_none = 0; |
| 42 | const field_t direction_left = (1 << 6); | 44 | const field_t direction_left = (1 << 7); |
| 43 | const field_t direction_right = (1 << 7); | 45 | const field_t direction_right = (1 << 8); |
| 44 | const field_t direction_up = (1 << 8); | 46 | const field_t direction_up = (1 << 9); |
| 45 | const field_t direction_down = (1 << 9); | 47 | const field_t direction_down = (1 << 10); |
| 46 | 48 | ||
| 47 | const mask_t color_mask = Color::none | Color::red | Color::blue | Color::green; | 49 | const mask_t color_mask = Color::none | Color::red | Color::blue | Color::green; |
| 48 | const mask_t type_mask = block | bonuspoint; | 50 | const mask_t type_mask = block | bonuspoint; |
