From 11c5d147b845d4323f2e94c1ac47b6001420d8e6 Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 19 Jan 2017 13:33:46 -0600 Subject: -added entity growing -added bite functionality for creature/resource -added gender (next largest feature is reproduction) -refractored creature setTarget function to make more sense -added constants for starting size of entity and max size of entity -refractored list to make make much more sense -added constants for types --- inc/constants.hpp | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'inc/constants.hpp') diff --git a/inc/constants.hpp b/inc/constants.hpp index 08f548e..45ff0e7 100644 --- a/inc/constants.hpp +++ b/inc/constants.hpp @@ -1,20 +1,29 @@ #ifndef constants_h #define constants_h -const int CREATURES = 10; -const int RESOURCES = 100; -const int MINIMUM_RESOURCES = 90; -const int WINDOW_X = 1080; -const int WINDOW_Y = 640; +const int CREATURES = 10; +const int RESOURCES = 100; +const int MINIMUM_RESOURCES = 90; +const int WINDOW_X = 1080; +const int WINDOW_Y = 640; -const int CREATURE_START_HEALTH = 500; -const int CREATURE_MAX_HEALTH = 1000; -const int CREATURE_BEST_SENSE = 100; -const int CREATURE_SPEED = 1; -const int CREATURE_REACH = 5; -const int CREATURE_SIZE = 10; +const int CREATURE_TYPE = 1; +const int RESOURCE_TYPE = 2; -const int RESOURCE_SIZE = 5; -const int RESOURCE_AMOUNT = 100; +const int CREATURE_START_HEALTH = 500; +const int CREATURE_MAX_HEALTH = 1000; +const int CREATURE_BEST_SENSE = 100; +const int CREATURE_SPEED = 1; +const int CREATURE_REACH = 5; +const int CREATURE_SIZE_MAX = 20; +const int CREATURE_SIZE_START = 10; +const int CREATURE_BITE = 10; +const int CREATURE_AMOUNT_TO_GROW = 50; + +const int RESOURCE_SIZE_START = 5; +const int RESOURCE_SIZE_MAX = 10; +const int RESOURCE_AMOUNT_START = 100; +const int RESOURCE_AMOUNT_MAX = 200; +const int RESOURCE_GROW = 1; #endif -- cgit v1.2.3