public Player(int _index, PlayerColour _colour, string _playerName, Faction _race, PlayerType _type, PlayerTeam _team) { index = _index; colour = _colour; playerName = _playerName; race = _race; type = _type; team = _team; playerScore = 0; playerUnits = new List <Unit>(); }
bool FilterAlly(PlayerTeam team) { return(ally && thisAbility.owner.GetMyOwner().team == team); }
bool FilterEnemy(PlayerTeam team) { return(enemy && thisAbility.owner.GetMyOwner().team != team); }
public bool FilterTeam(PlayerTeam team) { return(FilterAlly(team) || FilterEnemy(team)); }