summaryrefslogtreecommitdiff
path: root/src/resource.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-05-05 21:01:52 -0500
committertom <tom@ground-control>2015-05-05 21:01:52 -0500
commitaaf0a73578ecbb8212e0d224d6fff68a229b1f48 (patch)
tree46f6d91c1bc02e434812af59477e11fb5e521713 /src/resource.cpp
parent22cd24a1fe33b6bc9f52a600feb5cdb8d868d50f (diff)
fleshed out list, locations of all creatures and resources are now within
Diffstat (limited to 'src/resource.cpp')
-rw-r--r--src/resource.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/resource.cpp b/src/resource.cpp
index ac89e4b..a087aca 100644
--- a/src/resource.cpp
+++ b/src/resource.cpp
@@ -4,6 +4,14 @@ Resource::Resource(Window m, std::string s)
{
texture = loadTexture(s, m);
renderer = m.getRenderer();
- //int z = %
- x=y=300;
+ int zy = rand()%800;
+ int zx = rand()%1200;
+ y=zy;
+ x=zx;
+}
+
+Location Resource::getLocation()
+{
+ Location L(x,y,2);
+ return L;
}