Qt-Gebouw/deur.h

25 lines
422 B
C
Raw Normal View History

2022-02-10 16:44:22 +00:00
#ifndef DEUR_H
#define DEUR_H
#include <QPaintDevice>
#include <utility>
using namespace std;
2022-02-17 23:51:34 +00:00
class Deur{
2022-02-10 16:44:22 +00:00
private:
bool status;
int x_coordinaat, y_coordinaat;
unsigned lengte;
public:
void open();
void sluit();
virtual void teken(QPaintDevice*) = 0;
bool isDeurOpen();
unsigned int deurLengte();
std::pair<int,int> coordinaten() const;
Deur(int, int, int);
};
#endif // DEUR_H