Schalter.h 363 B

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