36 lines
825 B
C
36 lines
825 B
C
|
//////////////////////////////////////////////////
|
||
|
//Created by Erik of the GameLogic team
|
||
|
//////////////////////////////////////////////////
|
||
|
|
||
|
#ifndef TEAM_H
|
||
|
#define TEAM_H
|
||
|
namespace GameLogic
|
||
|
{
|
||
|
|
||
|
class Team
|
||
|
{
|
||
|
public:
|
||
|
Team(void);
|
||
|
Team(int teamSize);
|
||
|
~Team(void);
|
||
|
|
||
|
/********************************************************
|
||
|
* Gets a player in the team
|
||
|
* @param playerID: Arrayposition of the player you want to get
|
||
|
********************************************************/
|
||
|
Player* GetPlayer(int playerID);
|
||
|
|
||
|
/********************************************************
|
||
|
* Adds a player to the team
|
||
|
* @param player: Player that are to be added
|
||
|
********************************************************/
|
||
|
bool AddPlayer(Player *player);
|
||
|
|
||
|
private:
|
||
|
struct PrivateData;
|
||
|
PrivateData *myData;
|
||
|
};
|
||
|
}
|
||
|
#endif
|
||
|
|