diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-04 22:55:41 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-04 22:55:41 +0200 |
| commit | b35be096423e89746d441cbf2333800f853c92fd (patch) | |
| tree | 436f9242353f6bc5d9419b92202561eb8c57fb38 /pacman-c++/constants.h | |
| parent | eef1d8ea60e3797ba261ebfe61a7d1e165069ed4 (diff) | |
| download | foop-b35be096423e89746d441cbf2333800f853c92fd.tar.gz foop-b35be096423e89746d441cbf2333800f853c92fd.tar.bz2 foop-b35be096423e89746d441cbf2333800f853c92fd.zip | |
Support actor in map
Diffstat (limited to 'pacman-c++/constants.h')
| -rw-r--r-- | pacman-c++/constants.h | 13 |
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 |
