From b35be096423e89746d441cbf2333800f853c92fd Mon Sep 17 00:00:00 2001 From: totycro Date: Mon, 4 Apr 2011 22:55:41 +0200 Subject: Support actor in map --- pacman-c++/constants.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'pacman-c++/constants.h') 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 { typedef unsigned int field_t; typedef unsigned int mask_t; - const field_t block = (1 << 3); - const field_t bonuspoint = (1 << 4); + const field_t block = (1 << 3); + const field_t bonuspoint = (1 << 4); + const field_t pacman = (1 << 5); + + const field_t direction_left = (1 << 6); + const field_t direction_right = (1 << 7); + const field_t direction_up = (1 << 8); + const field_t direction_down = (1 << 9); const mask_t color_mask = noColor | red | blue | green; const mask_t type_mask = block | bonuspoint; + const mask_t direction_mask = direction_left | direction_right | direction_up | direction_down; typedef field_t** map_t; } -#endif // CONSTANTS_H \ No newline at end of file +#endif // CONSTANTS_H -- cgit v1.2.3