Qt-Gebouw/sensor.h

27 lines
369 B
C
Raw Normal View History

2022-02-10 16:44:22 +00:00
#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