2014-12-15 12:36:04 +00:00
|
|
|
#ifndef TRIGGER_HH_INCLUDED
|
|
|
|
#define TRIGGER_HH_INCLUDED
|
|
|
|
|
|
|
|
#include <vector>
|
2014-12-15 13:59:03 +00:00
|
|
|
#include "object.hh"
|
2014-12-15 12:36:04 +00:00
|
|
|
|
2014-12-16 11:19:48 +00:00
|
|
|
class Level;
|
|
|
|
|
2014-12-15 12:36:04 +00:00
|
|
|
class Trigger {
|
|
|
|
public:
|
2014-12-16 11:19:48 +00:00
|
|
|
Trigger(glm::vec3 position, float distance, bool isBigger, Object* object, void (*functionPointer)(Level*), Level* level);
|
2014-12-15 12:36:04 +00:00
|
|
|
Trigger();
|
|
|
|
~Trigger();
|
2014-12-15 13:59:03 +00:00
|
|
|
void triggerUpdate();
|
2014-12-15 12:36:04 +00:00
|
|
|
private:
|
2014-12-15 17:43:10 +00:00
|
|
|
glm::vec3 position;
|
2014-12-15 13:59:03 +00:00
|
|
|
float distance;
|
|
|
|
bool isBigger;
|
|
|
|
Object* object;
|
2014-12-16 11:19:48 +00:00
|
|
|
void (*functionPointer)(Level*);
|
|
|
|
Level* level;
|
2014-12-15 12:36:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|