summaryrefslogtreecommitdiff
path: root/inc/list.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'inc/list.hpp')
-rw-r--r--inc/list.hpp7
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;
};