Base.h 672 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <Punkt.h>
  3. #include "GameObject.h"
  4. #include "Team.h"
  5. class Spiel;
  6. class Base : public GameObject
  7. {
  8. private:
  9. int id;
  10. Team *team;
  11. int maxTime;
  12. bool inChange;
  13. Team *nextTeam;
  14. float leftTime;
  15. bool showTimer;
  16. Punkt timerPosition;
  17. int timerFarbe;
  18. public:
  19. Base( int id, int x, int y, int width, int height, bool showTimer, Punkt timerPosition, int timerFarbe, int maxTime = 10, Team *team = 0 );
  20. ~Base();
  21. void setTeam( Team *team, Spiel *zSpiel );
  22. void startChange( Team *team );
  23. void tick( double time, Spiel *zSpiel );
  24. int getId() const;
  25. Team *getTeam() const;
  26. Team *zTeam() const;
  27. };