示例#1
0
 public FightRestrictions(FightTeam team)
 {
     this.SecuredTeam = team;
 }
示例#2
0
 public int RandomAvailableTeamPlaces(FightTeam team)
 {
     int randomCell = team.PlacementsPlaces[Utilities.Basic.Rand(0, team.PlacementsPlaces.Count - 1)];
     int timeout = 0;
     while (team.HaveFightersOnThisPlace(randomCell))
     {
         randomCell = team.PlacementsPlaces[Utilities.Basic.Rand(0, team.PlacementsPlaces.Count - 1)];
         timeout++;
         if (timeout > 100)
             break;
     }
     return randomCell;
 }
示例#3
0
 public FightRestrictions(FightTeam team)
 {
     this.SecuredTeam = team;
 }