aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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 3015b11..9ed4182 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