From 536ddd91ae7f162045226d4b358ba95d678f6deb Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 15 Apr 2011 03:20:17 +0200 Subject: add support for random bonus points --- pacman-c++/constants.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pacman-c++/constants.h') 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 { { const unsigned int bonus_point_value = 100; const unsigned int point_value = 10; + /* players will be placed with this minimum manhattan distance */ + const unsigned int player_minimum_distance = 5; + /* if the distance above isn't possible, decrease the distance by this value */ + const unsigned int player_distance_decr = 2; + } + + namespace Random + { + /* there's a chance of 1:20 that a bonus point will be added */ + const unsigned int bouns_point_chance = 20; } } -- cgit v1.2.3