Qt-Gebouw/sensor.h
Hello-User b9f62b20e5 init
2022-02-10 17:44:22 +01:00

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