diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-04 20:35:49 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-04 20:35:49 +0200 |
| commit | a5ea024b0119a4b0fea858ae9115d744a786d3af (patch) | |
| tree | 99408cf77bad1596c9e2fcdf035a2294eff64cdd /pacman-c++/constants.h | |
| parent | 0693d00da48d795c7ccb658e8b69fe17f4427337 (diff) | |
| download | foop-a5ea024b0119a4b0fea858ae9115d744a786d3af.tar.gz foop-a5ea024b0119a4b0fea858ae9115d744a786d3af.tar.bz2 foop-a5ea024b0119a4b0fea858ae9115d744a786d3af.zip | |
change project file:
use:
qmake -config client
or
qmake -config main
Added basic client gui infrastructure
Diffstat (limited to 'pacman-c++/constants.h')
| -rw-r--r-- | pacman-c++/constants.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h new file mode 100644 index 0000000..278f2b3 --- /dev/null +++ b/pacman-c++/constants.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #ifndef CONSTANTS_H | ||
| 2 | #define CONSTANTS_H | ||
| 3 | |||
| 4 | const unsigned int map_size[2] = { 20, 20 }; | ||
| 5 | const unsigned int field_size[2] = { 16, 16 }; | ||
| 6 | |||
| 7 | // constants for data transmission to client | ||
| 8 | namespace transmission { | ||
| 9 | |||
| 10 | typedef unsigned int field_t; | ||
| 11 | const field_t red = (1 << 0); | ||
| 12 | const field_t blue = (1 << 1); | ||
| 13 | const field_t green = (1 << 2); | ||
| 14 | |||
| 15 | const field_t box = (1 << 3); | ||
| 16 | const field_t foo = (1 << 4); | ||
| 17 | |||
| 18 | typedef field_t** map_t; | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | #endif // CONSTANTS_H \ No newline at end of file | ||
