diff options
author | tom <tom@ground-control> | 2015-05-08 17:41:48 -0500 |
---|---|---|
committer | tom <tom@ground-control> | 2015-05-08 17:41:48 -0500 |
commit | ce6b35d717de85a7ac45fa98197edf13e1820c8a (patch) | |
tree | daca5dfebdb2c3de0ec851caf13c833cdee43c64 /src/resource.cpp | |
parent | 95fb44dd7009ddbb157fa4c54ddbab88a0af0c0b (diff) |
added removal of resources once eaten, from the L and R vector
creatures that done move don't die right now, we need them to wander if they dont have a priority
**difficult**
Diffstat (limited to 'src/resource.cpp')
-rw-r--r-- | src/resource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resource.cpp b/src/resource.cpp index 6a228fe..4f12e2d 100644 --- a/src/resource.cpp +++ b/src/resource.cpp @@ -8,6 +8,8 @@ Resource::Resource(Window m, std::string s) //Constructor //Initialized random position coordinates yPosition = rand()%800; xPosition = rand()%1200; + + amount = 100; } Resource::Resource(Window m, std::string s, Location z) @@ -17,6 +19,8 @@ Resource::Resource(Window m, std::string s, Location z) yPosition = z.y; xPosition = z.x; + + amount = 100; } Location Resource::getLocation() //Returns resource object |