From a9281bfcf21861e621a3243ecb633a299c8d8e52 Mon Sep 17 00:00:00 2001 From: tom Date: Sat, 21 Jan 2017 08:58:12 -0600 Subject: -took basic math functions and put it into functions.hpp -spaced various lines -reorganized variables by datatype -implemented reproduction -reorganized pathing so once a target is set, the creature checks if that same target is near every cycle --- inc/list.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/list.hpp') diff --git a/inc/list.hpp b/inc/list.hpp index 64ca522..cc78031 100644 --- a/inc/list.hpp +++ b/inc/list.hpp @@ -4,6 +4,7 @@ #include #include +#include "functions.hpp" #include "creature.hpp" #include "resource.hpp" #include "window.hpp" @@ -16,7 +17,6 @@ class List void Behavior(); void Place(); void Remove(); - 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: -- cgit v1.2.3