Danbias/Code/Game/GameLogic/Team.h

38 lines
846 B
C++

//////////////////////////////////////////////////
//Created by Erik of the GameLogic team
//////////////////////////////////////////////////
#ifndef TEAM_H
#define TEAM_H
#include "Player.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