Пример #1
0
 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>();
 }
Пример #2
0
 bool FilterAlly(PlayerTeam team)
 {
     return(ally && thisAbility.owner.GetMyOwner().team == team);
 }
Пример #3
0
 bool FilterEnemy(PlayerTeam team)
 {
     return(enemy && thisAbility.owner.GetMyOwner().team != team);
 }
Пример #4
0
 public bool FilterTeam(PlayerTeam team)
 {
     return(FilterAlly(team) || FilterEnemy(team));
 }