Base.h 621 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "GameObject.h"
  3. #include "Team.h"
  4. #include "Resource.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. ResourceRegistry *resources;
  16. public:
  17. Base( ResourceRegistry *zResources, int id, int x, int y, int width, int height, int maxTime = 10, Team * team = 0 );
  18. ~Base();
  19. void setTeam( Team *team, Spiel *zSpiel );
  20. void startChange( Team *team );
  21. void tick( double time, Spiel *zSpiel );
  22. int getId() const;
  23. Team *getTeam() const;
  24. Team *zTeam() const;
  25. };