Base.h 482 B

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