diff options
| author | manuel <manuel@mausz.at> | 2011-04-15 03:20:17 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-15 03:20:17 +0200 |
| commit | 536ddd91ae7f162045226d4b358ba95d678f6deb (patch) | |
| tree | 7311153ba9e54bacd5d319e21bf419a3acdb7c4c /pacman-c++/constants.h | |
| parent | 9a1787acd9fcd5dc0cce80cc0d6d007fa47b8bbe (diff) | |
| download | foop-536ddd91ae7f162045226d4b358ba95d678f6deb.tar.gz foop-536ddd91ae7f162045226d4b358ba95d678f6deb.tar.bz2 foop-536ddd91ae7f162045226d4b358ba95d678f6deb.zip | |
add support for random bonus points
Diffstat (limited to 'pacman-c++/constants.h')
| -rw-r--r-- | pacman-c++/constants.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h index a14e623..06b6561 100644 --- a/pacman-c++/constants.h +++ b/pacman-c++/constants.h | |||
| @@ -27,6 +27,16 @@ namespace Constants { | |||
| 27 | { | 27 | { |
| 28 | const unsigned int bonus_point_value = 100; | 28 | const unsigned int bonus_point_value = 100; |
| 29 | const unsigned int point_value = 10; | 29 | const unsigned int point_value = 10; |
| 30 | /* players will be placed with this minimum manhattan distance */ | ||
| 31 | const unsigned int player_minimum_distance = 5; | ||
| 32 | /* if the distance above isn't possible, decrease the distance by this value */ | ||
| 33 | const unsigned int player_distance_decr = 2; | ||
| 34 | } | ||
| 35 | |||
| 36 | namespace Random | ||
| 37 | { | ||
| 38 | /* there's a chance of 1:20 that a bonus point will be added */ | ||
| 39 | const unsigned int bouns_point_chance = 20; | ||
| 30 | } | 40 | } |
| 31 | } | 41 | } |
| 32 | 42 | ||
