#pragma once #include "GameObject.h" #include "Team.h" class Base : public GameObject { private: static int nextId; int id; Team *team; int maxTime; bool inChange; Team *nextTeam; float leftTime; public: Base( int x, int y, int width, int height, int maxTime = 10, Team *team = 0 ); ~Base(); void setTeam( Team *team ); void tick( float time ); void startChange( Team *team ); Team *getTeam() const; Team *zTeam() const; };