From bfaf2e63e64169abbb1a4c079a937091060574b7 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 5 Apr 2011 12:26:04 +0200 Subject: forgot some commits.. replace std::map with QMap --- pacman-c++/constants.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pacman-c++/constants.h') diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h index d9362d8..56d29b7 100644 --- a/pacman-c++/constants.h +++ b/pacman-c++/constants.h @@ -1,6 +1,10 @@ #ifndef CONSTANTS_H #define CONSTANTS_H +#define SPRITE_MARGIN 2 +#define SPRITE_WIDTH 16 +#define SPRITE_HEIGHT 16 + const unsigned int map_size[2] = { 20, 20 }; const unsigned int field_size[2] = { 16, 16 }; @@ -22,6 +26,7 @@ namespace transmission const field_t bonuspoint = (1 << 4); const field_t pacman = (1 << 5); + const field_t direction_none = 0; const field_t direction_left = (1 << 6); const field_t direction_right = (1 << 7); const field_t direction_up = (1 << 8); @@ -29,7 +34,7 @@ namespace transmission 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; + const mask_t direction_mask = direction_none | direction_left | direction_right | direction_up | direction_down; typedef field_t** map_t; } -- cgit v1.2.3