Schalter.h 400 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "GameObject.h"
  3. class Schalter : public GameObject
  4. {
  5. private:
  6. static int nextId;
  7. int id;
  8. bool aktiv = true;
  9. int aktivierungen = 0;
  10. public:
  11. Schalter( int x, int y, int width, int height, bool aktive );
  12. ~Schalter();
  13. void setAktive() const;
  14. void press();
  15. int getAnzahlAktivierungen() const;
  16. bool isAktive() const;
  17. int getId() const;
  18. };