From aaf0a73578ecbb8212e0d224d6fff68a229b1f48 Mon Sep 17 00:00:00 2001 From: tom Date: Tue, 5 May 2015 21:01:52 -0500 Subject: fleshed out list, locations of all creatures and resources are now within --- src/resource.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/resource.cpp') 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; } -- cgit v1.2.3