aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-10-08 09:09:15 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-10-08 09:09:15 -0400
commitedf746b79c8646c2c21c04997d23c94c1ee8adcd (patch)
tree10479cd0a9868a4678af8acb5ebaf8f2c4d8dc7c /include/entities.h
parent281da1f81b1eef9e05e881e12d986b6b45ce8696 (diff)
Added mob class, and basic skirl
Diffstat (limited to 'include/entities.h')
-rw-r--r--include/entities.h37
1 files changed, 35 insertions, 2 deletions
diff --git a/include/entities.h b/include/entities.h
index dacf394..833ebe1 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -44,11 +44,11 @@ public:
void spawn(float, float);
void draw(void);
- void wander(int, vec2*);
+ virtual void wander(int, vec2*){}
void getName();
virtual void interact(){}
-private:
int ticksToUse; //The variable for deciding how long an entity should do a certain task
+private:
};
class Player : public Entity{
@@ -64,6 +64,7 @@ public:
NPC();
void addAIFunc(int (*func)(NPC *));
void interact();
+ void wander(int, vec2*);
};
class Structures : public Entity{
public:
@@ -71,5 +72,37 @@ public:
Structures();
unsigned int spawn(_TYPE, float, float);
};
+class Mob : public Entity{
+public:
+ Mob();
+ void wander(int, vec2*);
+};
#endif // ENTITIES_H
+
+/**
+ENTITY TYPES
+-1 STRUCTURES
+|->1 Village
+|->2 Castle
+|
+0 PLAYERS
+|->Player
+|
+1 NPCS
+|->0 Base
+|->1 Merchant
+|
+2 MOBS
+|->1 Skirl
+
+
+
+
+
+
+
+
+
+
+**/ \ No newline at end of file