summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-05-05 15:25:32 -0500
committertom <tom@ground-control>2015-05-05 15:25:32 -0500
commit22cd24a1fe33b6bc9f52a600feb5cdb8d868d50f (patch)
treea2c854b5ed2b746017bd975a241f85b7080ffa4c /inc
parentafcf5f509a318ee66a16690f204f03dee701722e (diff)
fixed list to make it easy to add more creatures/resources.
need to figure out how to generate more random numbers after - implement resource amount and ability to eat
Diffstat (limited to 'inc')
-rw-r--r--inc/list.hpp5
-rw-r--r--inc/window.hpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/inc/list.hpp b/inc/list.hpp
index 6ae906d..240fa95 100644
--- a/inc/list.hpp
+++ b/inc/list.hpp
@@ -10,12 +10,13 @@ class List
public:
List(Window m);
void Behavior();
+ void Place();
private:
+ //Window main;
std::vector<Resource> R;
std::vector<Creature> C;
- Window main;
int ** L;
};
-#endif \ No newline at end of file
+#endif
diff --git a/inc/window.hpp b/inc/window.hpp
index b28da56..2f65b04 100644
--- a/inc/window.hpp
+++ b/inc/window.hpp
@@ -9,6 +9,8 @@
#include <time.h>
#include <iostream>
#include <vector>
+#include <chrono>
+#include <random>
class Window
{