aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-09-30 11:52:47 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-09-30 11:52:47 -0400
commitc669b83b4f273df6f6ed824b997a77267fd0186f (patch)
treeb09e9bb8e3f5a8a0ce40850d39093b9da717aa62 /include/entities.h
parent5d4d0b5845d2b660e6c0d689c16572be538bbbe7 (diff)
NPC's spawn with a name and gender now
Diffstat (limited to 'include/entities.h')
-rw-r--r--include/entities.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/entities.h b/include/entities.h
index 4f0c338..3d2bbef 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -5,6 +5,8 @@
#define NPCp(n) ((NPC *)n)
+extern FILE* names;
+
class Entity{
public:
void *inWorld;
@@ -25,13 +27,15 @@ public:
bool alive; //the flag for whether or not the entity is alive
unsigned char ground; //variable for testing what ground the entity is on to apply certain traits
+ char* name;
+ GENDER gender;
unsigned int texture[]; //TODO: ADD TEXTURES
void spawn(float, float);
void draw(void);
void wander(int, vec2*);
- char* getName();
+ void getName();
virtual void interact(){}
private:
int ticksToUse; //The variable for deciding how long an entity should do a certain task