From f2f0867edd0d9624a77e4e5db39825b8ea1a55d0 Mon Sep 17 00:00:00 2001 From: tom Date: Sat, 14 Jan 2017 11:56:33 -0600 Subject: completly remove location structure and replaced it with sdl_rect --- inc/list.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'inc/list.hpp') 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 #include #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 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 R; list C; }; -- cgit v1.2.3