From baa7977e0e325e92c700c47b4adea9082749f1d7 Mon Sep 17 00:00:00 2001 From: tom Date: Sat, 2 May 2015 22:45:16 -0500 Subject: renamed so atom detects it is a cpp file :x --- inc/creature.h | 17 ----------------- inc/creature.hpp | 17 +++++++++++++++++ inc/entity.h | 20 -------------------- inc/entity.hpp | 20 ++++++++++++++++++++ inc/event.h | 21 --------------------- inc/event.hpp | 21 +++++++++++++++++++++ inc/main.h | 10 ---------- inc/main.hpp | 10 ++++++++++ inc/resource.h | 12 ------------ inc/resource.hpp | 12 ++++++++++++ inc/window.h | 27 --------------------------- inc/window.hpp | 27 +++++++++++++++++++++++++++ 12 files changed, 107 insertions(+), 107 deletions(-) delete mode 100644 inc/creature.h create mode 100644 inc/creature.hpp delete mode 100644 inc/entity.h create mode 100644 inc/entity.hpp delete mode 100644 inc/event.h create mode 100644 inc/event.hpp delete mode 100644 inc/main.h create mode 100644 inc/main.hpp delete mode 100644 inc/resource.h create mode 100644 inc/resource.hpp delete mode 100644 inc/window.h create mode 100644 inc/window.hpp (limited to 'inc') diff --git a/inc/creature.h b/inc/creature.h deleted file mode 100644 index eef0d03..0000000 --- a/inc/creature.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef creature_h -#define creature_h - -#include "entity.h" - -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.hpp b/inc/creature.hpp new file mode 100644 index 0000000..eef0d03 --- /dev/null +++ b/inc/creature.hpp @@ -0,0 +1,17 @@ +#ifndef creature_h +#define creature_h + +#include "entity.h" + +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/entity.h b/inc/entity.h deleted file mode 100644 index 1d16a2c..0000000 --- a/inc/entity.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef entity_h -#define entity_h - -#include "window.h" - -class Entity -{ - public: - void Place(); - SDL_Texture* loadTexture(std::string path, Window main); - - protected: - int x, y; - int height, width; - int degrees = 0; - SDL_Texture* texture; - SDL_Renderer* renderer; -}; - -#endif diff --git a/inc/entity.hpp b/inc/entity.hpp new file mode 100644 index 0000000..1d16a2c --- /dev/null +++ b/inc/entity.hpp @@ -0,0 +1,20 @@ +#ifndef entity_h +#define entity_h + +#include "window.h" + +class Entity +{ + public: + void Place(); + SDL_Texture* loadTexture(std::string path, Window main); + + protected: + int x, y; + int height, width; + int degrees = 0; + SDL_Texture* texture; + SDL_Renderer* renderer; +}; + +#endif diff --git a/inc/event.h b/inc/event.h deleted file mode 100644 index 9ba7eea..0000000 --- a/inc/event.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef event_h -#define event_h - -#include "window.h" - -class Event -{ - public: - Event(); - int Poll(); - void off(); - bool gRun(); - SDL_Event& gEvent(); - int gEventType(); - - private: - bool run; - SDL_Event v; -}; - -#endif diff --git a/inc/event.hpp b/inc/event.hpp new file mode 100644 index 0000000..9ba7eea --- /dev/null +++ b/inc/event.hpp @@ -0,0 +1,21 @@ +#ifndef event_h +#define event_h + +#include "window.h" + +class Event +{ + public: + Event(); + int Poll(); + void off(); + bool gRun(); + SDL_Event& gEvent(); + int gEventType(); + + private: + bool run; + SDL_Event v; +}; + +#endif diff --git a/inc/main.h b/inc/main.h deleted file mode 100644 index d026886..0000000 --- a/inc/main.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef main_h -#define main_h - -#include "window.h" -#include "entity.h" -#include "event.h" -#include "creature.h" -#include "resource.h" - -#endif diff --git a/inc/main.hpp b/inc/main.hpp new file mode 100644 index 0000000..d026886 --- /dev/null +++ b/inc/main.hpp @@ -0,0 +1,10 @@ +#ifndef main_h +#define main_h + +#include "window.h" +#include "entity.h" +#include "event.h" +#include "creature.h" +#include "resource.h" + +#endif diff --git a/inc/resource.h b/inc/resource.h deleted file mode 100644 index 463f355..0000000 --- a/inc/resource.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef resource_h -#define resource_h - -#include "entity.h" - -class Resource: public Entity -{ - public: - Resource(Window m, std::string s); -}; - -#endif diff --git a/inc/resource.hpp b/inc/resource.hpp new file mode 100644 index 0000000..463f355 --- /dev/null +++ b/inc/resource.hpp @@ -0,0 +1,12 @@ +#ifndef resource_h +#define resource_h + +#include "entity.h" + +class Resource: public Entity +{ + public: + Resource(Window m, std::string s); +}; + +#endif diff --git a/inc/window.h b/inc/window.h deleted file mode 100644 index d2dd801..0000000 --- a/inc/window.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef window_h -#define window_h - -#include -#include -#include -#include -#include -#include -#include - -class Window -{ - public: - Window(); - void Destroy(); - - void Clear(); - void Render(); - SDL_Renderer* getRenderer(); - - private: - SDL_Window* main; - SDL_Renderer* renderer; -}; - -#endif diff --git a/inc/window.hpp b/inc/window.hpp new file mode 100644 index 0000000..d2dd801 --- /dev/null +++ b/inc/window.hpp @@ -0,0 +1,27 @@ +#ifndef window_h +#define window_h + +#include +#include +#include +#include +#include +#include +#include + +class Window +{ + public: + Window(); + void Destroy(); + + void Clear(); + void Render(); + SDL_Renderer* getRenderer(); + + private: + SDL_Window* main; + SDL_Renderer* renderer; +}; + +#endif -- cgit v1.2.3