diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/creature.h | 5 | ||||
-rw-r--r-- | inc/creature.h~ | 16 | ||||
-rw-r--r-- | inc/window.h | 2 | ||||
-rw-r--r-- | inc/window.h~ | 24 |
4 files changed, 47 insertions, 0 deletions
diff --git a/inc/creature.h b/inc/creature.h index 5f5bb8d..eef0d03 100644 --- a/inc/creature.h +++ b/inc/creature.h @@ -7,6 +7,11 @@ class Creature: public Entity { public: Creature(Window m, std::string s); + void Behavior(); + void Action(); + private: + int xT; + int yT; }; #endif diff --git a/inc/creature.h~ b/inc/creature.h~ new file mode 100644 index 0000000..19d4cb3 --- /dev/null +++ b/inc/creature.h~ @@ -0,0 +1,16 @@ +#ifndef creature_h +#define creature_h + +#include "entity.h" + +class Creature: public Entity +{ + public: + Creature(Window m, std::string s); + void Behavior(); + private: + int xT; + int yT; +}; + +#endif diff --git a/inc/window.h b/inc/window.h index fb1cf67..17ba597 100644 --- a/inc/window.h +++ b/inc/window.h @@ -5,6 +5,8 @@ #include <SDL2/SDL_image.h> #include <string> #include <cmath> +#include <stdlib.h> +#include <time.h> class Window { diff --git a/inc/window.h~ b/inc/window.h~ new file mode 100644 index 0000000..fb1cf67 --- /dev/null +++ b/inc/window.h~ @@ -0,0 +1,24 @@ +#ifndef window_h +#define window_h + +#include <SDL2/SDL.h> +#include <SDL2/SDL_image.h> +#include <string> +#include <cmath> + +class Window +{ + public: + Window(); + void Destroy(); + + void Clear(); + void Render(); + SDL_Renderer* getRenderer(); + + private: + SDL_Window* main; + SDL_Renderer* renderer; +}; + +#endif |