diff options
author | tom <tombarrett@siu.edu> | 2017-01-14 11:56:33 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-01-14 11:56:33 -0600 |
commit | f2f0867edd0d9624a77e4e5db39825b8ea1a55d0 (patch) | |
tree | 1ead1fa412bd7c2e791310c7cb7bbe84c79696a4 /inc/list.hpp | |
parent | b97a54b8acd113e99871fdb0f683e27e0912bf42 (diff) |
completly remove location structure and replaced it with sdl_rect
Diffstat (limited to 'inc/list.hpp')
-rw-r--r-- | inc/list.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/inc/list.hpp b/inc/list.hpp index 8cf409b..6800b34 100644 --- a/inc/list.hpp +++ b/inc/list.hpp @@ -1,12 +1,12 @@ #ifndef list_h #define list_h +#include <SDL2/SDL.h> #include <list> #include "creature.hpp" #include "resource.hpp" #include "window.hpp" -#include "location.hpp" #include "constants.hpp" class List @@ -15,12 +15,11 @@ class List List(Window m); void Behavior(); void Place(); - double Distance(Location A, Location B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));}; + double Distance(SDL_Rect A, SDL_Rect B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));}; list<Entity*> getNear(Creature C); private: - //vectors containing objects of each type - Window main = Window("no");//will be needed for adding R's and C's after constructor. + Window main = Window("do not create new window."); list<Resource> R; list<Creature> C; }; |