diff options
author | tom <tombarrett@siu.edu> | 2017-01-21 08:58:12 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-01-21 08:58:12 -0600 |
commit | a9281bfcf21861e621a3243ecb633a299c8d8e52 (patch) | |
tree | 7d4687fd9a8f40e806e6b7c8803c0e87fcae6639 /inc/list.hpp | |
parent | ccb66c8d6d175b1bd3d8ecaa540e80baac5181b6 (diff) |
-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
Diffstat (limited to 'inc/list.hpp')
-rw-r--r-- | inc/list.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 <SDL2/SDL.h> #include <list> +#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<Entity*> getNear(Creature C); private: |