summaryrefslogtreecommitdiff
path: root/src/resource.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2016-05-02 15:39:22 -0500
committertom <tom@ground-control>2016-05-02 15:39:22 -0500
commit3a2f69b3f1082b2fbdf39bd2a4f7ad0020971eac (patch)
treec5961dcb6e1ccbdf5a478d97f7383028492140d4 /src/resource.cpp
parent1ddb996ac4a4fc78e5484acdadac2df95006b632 (diff)
spring cleaning, added framerate cap & started iterator replacement
Diffstat (limited to 'src/resource.cpp')
-rw-r--r--src/resource.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resource.cpp b/src/resource.cpp
index 71a13e3..8f1a4cf 100644
--- a/src/resource.cpp
+++ b/src/resource.cpp
@@ -1,11 +1,10 @@
#include "resource.hpp"
-Resource::Resource(Window m, std::string s) //Constructor
+Resource::Resource(Window m, std::string s)
{
texture = loadTexture(s, m);
renderer = m.getRenderer();
- //Initialized random position coordinates
yPosition = rand()%800;
xPosition = rand()%1200;
@@ -23,7 +22,7 @@ Resource::Resource(Window m, std::string s, Location z)
amount = 100;
}
-Location Resource::getLocation() //Returns resource object
+Location Resource::getLocation()
{
Location L(xPosition,yPosition,2);
return L;