Saxum/trigger.hh

22 lines
478 B
C++
Raw Normal View History

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