aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/UIClass.h2
-rw-r--r--include/entities.h3
2 files changed, 5 insertions, 0 deletions
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