Danbias/Code/Game/GameLogic/Team.h

40 lines
901 B
C
Raw Normal View History

//////////////////////////////////////////////////
//Created by Erik of the GameLogic team
//////////////////////////////////////////////////
#ifndef TEAM_H
#define TEAM_H
2014-01-20 15:47:52 +01:00
2013-12-18 08:41:31 +01:00
#include "Player.h"
2014-01-20 15:47:52 +01:00
#include "DynamicArray.h"
2013-12-18 08:41:31 +01:00
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:
2014-01-20 15:47:52 +01:00
Utility::DynamicMemory::DynamicArray<Player*> players;
int teamSize;
};
}
#endif