aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-28 08:50:24 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-28 08:50:24 -0400
commit7125200e83a9255b8da6745b4a457996705bf263 (patch)
tree52d51815c7112f5195326620ef81907f0147c743 /include
parent82727d2d50d6a71cd5e9d5a7c00fa41888a39eb7 (diff)
parent113bb97e4ce7db5bc275e0dccf7c790c86cda5d7 (diff)
improvements ;)
Diffstat (limited to 'include')
-rw-r--r--include/common.h3
-rw-r--r--include/entities.h5
-rw-r--r--include/ui.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index aa175bc..922dd59 100644
--- a/include/common.h
+++ b/include/common.h
@@ -10,7 +10,8 @@
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_opengl.h>
-typedef struct { float x; float y; } vec2;
+typedef struct { float x; float y; } vec2;
+enum _TYPE {STRUCTURET = -1, PLAYERT = 0, NPCT = 1};
#include <entities.h>
diff --git a/include/entities.h b/include/entities.h
index 101fc7a..df81ad2 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -9,7 +9,8 @@ public:
float width;
float height;
float speed;
- int type, subtype;
+ int subtype;
+ _TYPE type;
vec2 loc;
vec2 vel;
bool right,left, canMove;
@@ -41,7 +42,7 @@ class Structures : public Entity{
public:
void *inside;
Structures();
- unsigned int spawn(int, float, float);
+ unsigned int spawn(_TYPE, float, float);
};
#endif // ENTITIES_H
diff --git a/include/ui.h b/include/ui.h
index 8341a8c..dbcee35 100644
--- a/include/ui.h
+++ b/include/ui.h
@@ -7,6 +7,8 @@
namespace ui { // Functions are kept in a namespace simply
// for organization
+ extern vec2 mouse;
+
extern bool debug;
extern unsigned int fontSize;