123456789101112131415161718192021222324252627 |
- #pragma once
- #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;
- public:
- Base( int id, int x, int y, int width, int height, 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;
- };
|