Base.h 819 B

12345678910111213141516171819202122232425262728293031323334
  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. bool showTimer;
  17. Punkt timerPosition;
  18. int timerFarbe;
  19. TextRenderer *tr;
  20. public:
  21. Base( ResourceRegistry *zResources, int id, int x, int y, int width, int height, bool showTimer, Punkt timerPosition, int timerFarbe, TextRenderer *tr, int maxTime = 10, Team * team = 0 );
  22. ~Base();
  23. void setTeam( Team *team, Spiel *zSpiel );
  24. void startChange( Team *team );
  25. void tick( double time, Spiel *zSpiel );
  26. void render( Bild &rObj ) override;
  27. int getId() const;
  28. Team *getTeam() const;
  29. Team *zTeam() const;
  30. };