Base.h 535 B

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