27 lines
369 B
C++
27 lines
369 B
C++
#ifndef SENSOR_H
|
|
#define SENSOR_H
|
|
|
|
#include <utility>
|
|
|
|
using namespace std;
|
|
|
|
|
|
class QPaintDevice;
|
|
|
|
class Sensor
|
|
{
|
|
public:
|
|
Sensor(int,int);
|
|
virtual void teken(QPaintDevice*);
|
|
void activeer();
|
|
void deactiveer();
|
|
bool isGeactiveerd()const;
|
|
std::pair<int,int> coordinaten() const;
|
|
|
|
private:
|
|
int x,y;
|
|
bool geactiveerd;
|
|
};
|
|
|
|
#endif // SENSOR_H
|