1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include "GameObject.h"
- #include "Team.h"
- #include "Resource.h"
- class Spiel;
- class Base : public GameObject
- {
- private:
- int id;
- Team *team;
- int maxTime;
- bool inChange;
- Team *nextTeam;
- float leftTime;
- ResourceRegistry *resources;
- public:
- Base( ResourceRegistry *zResources, 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;
- };
|