Base.h 447 B

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