summaryrefslogtreecommitdiffstats
path: root/pacman-c++/constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/constants.h')
-rw-r--r--pacman-c++/constants.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h
index a8907b1..088fcb8 100644
--- a/pacman-c++/constants.h
+++ b/pacman-c++/constants.h
@@ -17,13 +17,20 @@ namespace transmission {
17 typedef unsigned int field_t; 17 typedef unsigned int field_t;
18 typedef unsigned int mask_t; 18 typedef unsigned int mask_t;
19 19
20 const field_t block = (1 << 3); 20 const field_t block = (1 << 3);
21 const field_t bonuspoint = (1 << 4); 21 const field_t bonuspoint = (1 << 4);
22 const field_t pacman = (1 << 5);
23
24 const field_t direction_left = (1 << 6);
25 const field_t direction_right = (1 << 7);
26 const field_t direction_up = (1 << 8);
27 const field_t direction_down = (1 << 9);
22 28
23 const mask_t color_mask = noColor | red | blue | green; 29 const mask_t color_mask = noColor | red | blue | green;
24 const mask_t type_mask = block | bonuspoint; 30 const mask_t type_mask = block | bonuspoint;
31 const mask_t direction_mask = direction_left | direction_right | direction_up | direction_down;
25 32
26 typedef field_t** map_t; 33 typedef field_t** map_t;
27} 34}
28 35
29#endif // CONSTANTS_H \ No newline at end of file 36#endif // CONSTANTS_H