summaryrefslogtreecommitdiff
path: root/inc/list.hpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2016-05-02 21:24:02 -0500
committertom <tom@ground-control>2016-05-02 21:24:02 -0500
commit8d9ad3eb74bc0dfc647abf03b7b99ed16f2a9115 (patch)
treeeb16f853c280ed200953fbc7a500193a69ef8892 /inc/list.hpp
parent0346965968fb5da1a52ed8f896a922c63ce180f6 (diff)
implementing better modularity, came into bad bug. All creatures seem to have same near vector.
Diffstat (limited to 'inc/list.hpp')
-rw-r--r--inc/list.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/list.hpp b/inc/list.hpp
index 14a6a9a..9d05fec 100644
--- a/inc/list.hpp
+++ b/inc/list.hpp
@@ -12,7 +12,8 @@ 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(Location A, Location B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));};
+ vector<Entity*> getNear(Creature C);
private:
//vectors containing objects of each type