Schalter.h 385 B

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