diff options
| author | manuel <manuel@mausz.at> | 2011-04-11 13:17:27 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-11 13:17:27 +0200 |
| commit | ff536f6d76acd8a7daaf0a8ca27c2ec3f0f42be9 (patch) | |
| tree | 8f110e7cad00274408fdf6266c3bb7ff7c7c12d9 /pacman-c++/constants.h | |
| parent | ea2880702a7df079f5e8eee0280584f186c2de73 (diff) | |
| download | foop-ff536f6d76acd8a7daaf0a8ca27c2ec3f0f42be9.tar.gz foop-ff536f6d76acd8a7daaf0a8ca27c2ec3f0f42be9.tar.bz2 foop-ff536f6d76acd8a7daaf0a8ca27c2ec3f0f42be9.zip | |
create and use Constants::server
Diffstat (limited to 'pacman-c++/constants.h')
| -rw-r--r-- | pacman-c++/constants.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h index aacc964..90963fe 100644 --- a/pacman-c++/constants.h +++ b/pacman-c++/constants.h | |||
| @@ -15,13 +15,16 @@ namespace Constants { | |||
| 15 | const unsigned int sprite_margin = 2; | 15 | const unsigned int sprite_margin = 2; |
| 16 | const unsigned int sprite_offset = 20; | 16 | const unsigned int sprite_offset = 20; |
| 17 | const unsigned int tick = 250; // ms | 17 | const unsigned int tick = 250; // ms |
| 18 | static bool server = false; | ||
| 18 | 19 | ||
| 19 | namespace Networking { | 20 | namespace Networking |
| 21 | { | ||
| 20 | const unsigned int port = 7321; | 22 | const unsigned int port = 7321; |
| 21 | const unsigned int connection_timeout = 3000; | 23 | const unsigned int connection_timeout = 3000; |
| 22 | } | 24 | } |
| 23 | 25 | ||
| 24 | namespace Game { | 26 | namespace Game |
| 27 | { | ||
| 25 | const unsigned int bonus_point_value = 100; | 28 | const unsigned int bonus_point_value = 100; |
| 26 | const unsigned int point_value = 10; | 29 | const unsigned int point_value = 10; |
| 27 | } | 30 | } |
