From aa5c31be6ec6a688e8d3a66c770ba99be8e060c9 Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 12 Feb 2017 05:59:12 -0600 Subject: -minor constant changes -implemented dna structure, which carries the creatures attributes suchas speed and reach -currently a child inherits 100% the same dna as the mother -removed sing namespace std --- inc/constants.hpp | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'inc/constants.hpp') diff --git a/inc/constants.hpp b/inc/constants.hpp index 5ec55b2..fd3413b 100644 --- a/inc/constants.hpp +++ b/inc/constants.hpp @@ -1,31 +1,29 @@ #ifndef constants_h #define constants_h -const int CREATURES = 10; -const int RESOURCES = 100; -const int MINIMUM_RESOURCES = 80; -const int WINDOW_X = 500; -const int WINDOW_Y = 500; +const int CREATURES = 10; +const int RESOURCES = 100; +const int MINIMUM_RESOURCES = 80; +const int WINDOW_X = 500; +const int WINDOW_Y = 500; -const int CREATURE_TYPE = 1; -const int RESOURCE_TYPE = 2; +const int CREATURE_TYPE = 1; +const int RESOURCE_TYPE = 2; -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 = 10; -const int CREATURE_SIZE_START = 5; -const int CREATURE_BITE = 10; -const int CREATURE_AMOUNT_TO_GROW = 50; -const int CREATURE_EXPECTED_PREGNANCY_TIME = 100; -const int CREATURE_EXPECTED_AGE = 100000; +const int CREATURE_MAX_HEALTH = 1000; +const int CREATURE_SPEED = 1; +const int CREATURE_REACH = 5; +const int CREATURE_BEST_SENSE = 100; +const int CREATURE_BITE = 10; +const int CREATURE_AMOUNT_TO_GROW = 50; +const int CREATURE_EXP_PREG_TIME = 100; +const int CREATURE_EXP_AGE = 1000000; +const int CREATURE_SIZE_MAX = 10; -const int RESOURCE_SIZE_START = 1; -const int RESOURCE_SIZE_MAX = 4; -const int RESOURCE_AMOUNT_START = 100; -const int RESOURCE_AMOUNT_MAX = 200; -const int RESOURCE_GROW = 1; +const int RESOURCE_SIZE_START = 1; +const int RESOURCE_SIZE_MAX = 4; +const int RESOURCE_AMOUNT_START = 100; +const int RESOURCE_AMOUNT_MAX = 200; +const int RESOURCE_GROW = 1; #endif -- cgit v1.2.3