diff options
author | majortom6 <tombarrett@siu.edu> | 2017-02-18 09:28:58 -0600 |
---|---|---|
committer | majortom6 <tombarrett@siu.edu> | 2017-02-18 09:28:58 -0600 |
commit | 03885192b9ff7d3c5e2dcfd98aefd21e9b62f603 (patch) | |
tree | c8bf20df1b634d2988e98de85c4439ca16620ca1 /src/resource.cpp | |
parent | 600ce4ae4179ddcb9849c6bb7646f8fc1e79c459 (diff) |
general refractoring
Diffstat (limited to 'src/resource.cpp')
-rw-r--r-- | src/resource.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resource.cpp b/src/resource.cpp index 2f2181f..ee9100a 100644 --- a/src/resource.cpp +++ b/src/resource.cpp @@ -1,9 +1,8 @@ #include "resource.hpp" -Resource::Resource(Window m, SDL_Rect R) +Resource::Resource(Window M, SDL_Rect R) { - renderer = m.getRenderer(); - type = RESOURCE_TYPE; + renderer = M.getRenderer(); rect = R; if(rect.x == 0 && rect.y == 0){ @@ -11,6 +10,7 @@ Resource::Resource(Window m, SDL_Rect R) rect.y = rand()%WINDOW_Y; } + type = RESOURCE_TYPE; amount = RESOURCE_AMOUNT_START; growAmount = RESOURCE_GROW; } |