Base.h 512 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. static int nextId;
  9. int id;
  10. Team *team;
  11. int maxTime;
  12. bool inChange;
  13. Team *nextTeam;
  14. float leftTime;
  15. public:
  16. Base( int x, int y, int width, int height, int maxTime = 10, Team *team = 0 );
  17. ~Base();
  18. void setTeam( Team *team );
  19. void tick( double time, Spiel *zSpiel );
  20. void startChange( Team *team );
  21. Team *getTeam() const;
  22. Team *zTeam() const;
  23. };