12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <Punkt.h>
- #include "GameObject.h"
- #include "Team.h"
- class Spiel;
- class Base : public GameObject
- {
- private:
- int id;
- Team *team;
- int maxTime;
- bool inChange;
- Team *nextTeam;
- float leftTime;
- bool showTimer;
- Punkt timerPosition;
- int timerFarbe;
- public:
- Base( int id, int x, int y, int width, int height, bool showTimer, Punkt timerPosition, int timerFarbe, int maxTime = 10, Team *team = 0 );
- ~Base();
- void setTeam( Team *team, Spiel *zSpiel );
- void startChange( Team *team );
- void tick( double time, Spiel *zSpiel );
- int getId() const;
- Team *getTeam() const;
- Team *zTeam() const;
- };
|