Qt-Gebouw/deur.h

36 lines
684 B
C
Raw Permalink Normal View History

2022-02-10 16:44:22 +00:00
#ifndef DEUR_H
#define DEUR_H
#include <QPaintDevice>
#include <utility>
2022-03-29 16:38:53 +00:00
#include "slot.h"
#include <list>
//class Slot;
2022-02-10 16:44:22 +00:00
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;
2022-03-29 16:38:53 +00:00
//Slot *slot;
std::list<Slot*> sloten;
2022-02-10 16:44:22 +00:00
public:
void open();
2022-03-29 16:38:53 +00:00
virtual void sluit();
2022-02-10 16:44:22 +00:00
virtual void teken(QPaintDevice*) = 0;
bool isDeurOpen();
unsigned int deurLengte();
std::pair<int,int> coordinaten() const;
Deur(int, int, int);
2022-03-29 16:38:53 +00:00
void addSlot(Slot*);
//std::list<Slot*> geefSleutel();
Slot* geefSleutel(int);
2022-04-06 16:01:47 +00:00
std::list<Slot*> geefSlot();
2022-03-29 16:38:53 +00:00
//Deur(int, int, int, Slot*);
2022-02-10 16:44:22 +00:00
};
#endif // DEUR_H