Umlenkung.h 710 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "GameObject.h"
  3. class Umlenkung : public GameObject
  4. {
  5. private:
  6. Richtung richtung;
  7. bool drehend;
  8. bool aktiv;
  9. int benutzt;
  10. int maxAbklingzeit;
  11. float abklingzeitVerbleibend;
  12. public:
  13. Umlenkung( int x, int y, int breite, int height, Richtung richtung, int maxAbklingzeit, bool drehend, bool aktiv );
  14. void setMaxAbklingzeit( int sekunden );
  15. void setAktiv( bool aktiv );
  16. void setDrehend( bool drehend );
  17. void setRichtung( Richtung r );
  18. void addBenutzt();
  19. void tick( double time );
  20. bool isAktive() const;
  21. bool hatAbklingzeit() const;
  22. bool istDrehend() const;
  23. int getMaxAbklingzeit() const;
  24. Richtung getRichtung() const;
  25. };