From c669b83b4f273df6f6ed824b997a77267fd0186f Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Wed, 30 Sep 2015 11:52:47 -0400 Subject: NPC's spawn with a name and gender now --- include/entities.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3