Saxum/trigger.hh

25 lines
522 B
C++

#ifndef TRIGGER_HH_INCLUDED
#define TRIGGER_HH_INCLUDED
#include <vector>
#include "object.hh"
class Level;
class Trigger {
public:
Trigger(glm::vec3 position, float distance, bool isBigger, Object* object, void (*functionPointer)(Level*), Level* level);
Trigger();
~Trigger();
void triggerUpdate();
private:
glm::vec3 position;
float distance;
bool isBigger;
Object* object;
void (*functionPointer)(Level*);
Level* level;
};
#endif