From 45e83c53ee36d8999c00ebfc474d7ef3bb103c14 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Mon, 14 Sep 2015 21:20:01 -0400 Subject: Added mouse support, and debug Added FPS display and deltaTime display --- include/UIClass.h | 2 ++ include/entities.h | 3 +++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/UIClass.h b/include/UIClass.h index 9aafbd3..62d3e7e 100644 --- a/include/UIClass.h +++ b/include/UIClass.h @@ -14,6 +14,8 @@ public: void putText(const float x,const float y,const char *s,...); void putString(const float x,const float y,const char *s); void handleEvents(); + + float mousex, mousey; }; #endif // UICLASS_H diff --git a/include/entities.h b/include/entities.h index 2ed97ee..7d5e356 100644 --- a/include/entities.h +++ b/include/entities.h @@ -19,6 +19,7 @@ public: void spawn(float, float); void draw(void); void wander(int, vec2*); + virtual void interact(){} private: int ticksToUse; }; @@ -26,11 +27,13 @@ private: class Player : public Entity{ public: Player(); + void interact(); }; class NPC : public Entity{ public: NPC(); + void interact(); }; extern Entity *entnpc[32]; //The NPC base -- cgit v1.2.3