diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-23 08:24:55 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-23 08:24:55 -0400 |
commit | 4e60d3e2d3f66471dff75732626451690a5bc8b5 (patch) | |
tree | 11d8be239c4c09ce6e3c91ccd6032cadfc97d964 /include/entities.h | |
parent | afdbe5de31c9ae1009d36710eb2b1c31ec44a9f5 (diff) |
Flickering lights and light that follows player
Diffstat (limited to 'include/entities.h')
-rw-r--r-- | include/entities.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/include/entities.h b/include/entities.h index 450975f..442219c 100644 --- a/include/entities.h +++ b/include/entities.h @@ -139,10 +139,10 @@ public: vec2 loc; vec2 vel; - + float width; float height; - + float speed; // A speed factor for X movement /* @@ -172,7 +172,7 @@ public: char *name; GENDER gender; - + Texturec *tex; Texturec *ntex; @@ -180,22 +180,21 @@ public: void draw(void); void spawn(float, float); - + int ticksToUse; // Used by wander() - + virtual void wander(int){} virtual void interact(){} void follow(Entity *e); - + virtual ~Entity(){} }; class Player : public Entity{ public: QuestHandler qh; - bool light = false; - + Player(); ~Player(); void save(void); @@ -206,10 +205,10 @@ class NPC : public Entity{ public: std::vector<int (*)(NPC *)>aiFunc; int dialogIndex; - + NPC(); ~NPC(); - + void addAIFunc(int (*func)(NPC *),bool preload); void clearAIFunc(void); virtual void interact(); @@ -233,10 +232,10 @@ public: World *inWorld; std::string inside; std::string textureLoc; - + Structures(); ~Structures(); - + unsigned int spawn(BUILD_SUB, float, float); }; @@ -246,10 +245,10 @@ public: double init_y; void (*hey)(Mob *callee); std::string heyid; - + Mob(int); ~Mob(); - + void wander(int); }; @@ -259,13 +258,13 @@ private: public: std::string pickupDialog; bool questObject = false; - + Object(); Object(std::string in,std::string pd); ~Object(); - + void reloadTexture(void); - + void interact(void); }; #endif // ENTITIES_H |