aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-10-08 09:12:18 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-10-08 09:12:18 -0400
commitc88533e59e961a029f6bb4777932434a9ca517f4 (patch)
tree96a384874d8e9f49becc989fcc535f8d511a0c34 /include
parent6e9eda2e22e79a90395387f4014c975044ea8d05 (diff)
parentedf746b79c8646c2c21c04997d23c94c1ee8adcd (diff)
merge
Diffstat (limited to 'include')
-rw-r--r--include/common.h3
-rw-r--r--include/entities.h37
2 files changed, 37 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index ed2ed9e..b7c13e7 100644
--- a/include/common.h
+++ b/include/common.h
@@ -17,7 +17,8 @@ typedef struct { float x; float y; }vec2;
enum _TYPE { //these are the main types of entities
STRUCTURET = -1,
PLAYERT = 0,
- NPCT = 1
+ NPCT = 1,
+ MOBT = 2
};
enum GENDER{
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