From 3a2f69b3f1082b2fbdf39bd2a4f7ad0020971eac Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 2 May 2016 15:39:22 -0500 Subject: spring cleaning, added framerate cap & started iterator replacement --- src/resource.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/resource.cpp') 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; -- cgit v1.2.3