123456789101112131415161718192021 |
- #pragma once
- #include "GameObject.h"
- class Schalter : public GameObject
- {
- private:
- static int nextId;
- int id;
- bool aktiv = true;
- int aktivierungen = 0;
- public:
- Schalter( int x, int y, int width, int height, bool aktive );
- ~Schalter();
- void setAktive() const;
- void press();
- int getAnzahlAktivierungen() const;
- bool isAktive() const;
- int getId() const;
- };
|