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.h23
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
4const unsigned int map_size[2] = { 20, 20 };
5const unsigned int field_size[2] = { 16, 16 };
6
7// constants for data transmission to client
8namespace 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