diff options
author | tom <tom@apollo> | 2017-01-10 09:49:32 -0600 |
---|---|---|
committer | tom <tom@apollo> | 2017-01-10 09:49:32 -0600 |
commit | f6f6d81c5634f659693914b7b74efcdd39ba5d4f (patch) | |
tree | 5b51e9b82ae36c648e212cc9c95fb8233dc181c1 /inc/creature.hpp | |
parent | 20717aeb1b12a7179e7b29c3c8880f18b360a1c8 (diff) |
-Replaced images with colored rectangles
-Removed various functions and variables pertaining to such images
-Started migrating all uses of Location to SDL_Rect (I would preferably completly remove Location.hpp)
-Scaled down resolution to 1080x640 (I would like to make these global constants)
Diffstat (limited to 'inc/creature.hpp')
-rw-r--r-- | inc/creature.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/creature.hpp b/inc/creature.hpp index 636d960..bc23652 100644 --- a/inc/creature.hpp +++ b/inc/creature.hpp @@ -8,14 +8,14 @@ class Creature: public Entity { public: - Creature(Window m, std::string s); + Creature(Window m, int size); void Behavior(); void Action(); void Priority(); void setTarget(); void Move(Location l); + void giveN(list<Entity*> n){N = n;}; - Location getLocation(){return L;}; double Distance(Location A, Location B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));}; int getHealth(){return health;}; @@ -31,7 +31,7 @@ class Creature: public Entity bool hungry; int speed = 1; bool able; - int bestSense = 100; + int bestSense = 100; list<Entity*> N; Entity *target; |