aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/entities.h')
-rw-r--r--include/entities.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/entities.h b/include/entities.h
index 7cd657a..752908b 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -8,7 +8,7 @@ public:
float width;
float height;
float speed;
- int type;
+ int type, subtype;
vec2 loc;
vec2 vel;
bool right,left;
@@ -20,7 +20,6 @@ public:
class Player : public Entity{
public:
Player();
- ~Player();
};
class NPC : public Entity{
@@ -28,4 +27,13 @@ public:
NPC();
};
+extern Entity *entnpc[10]; //The NPC base
+extern NPC npc[10];
+
+class Structures : public Entity{
+public:
+ Structures();
+ void spawn(int, float, float);
+};
+
#endif // ENTITIES_H