public void Initialize(BS_Combatant cmbt, MT_Team t) { _team = t; _pawn = null; _base = cmbt; IsOut = false; }
// ------------------------------------------------------------------------------ public bool IsTeamOut(int teamNdx) // ------------------------------------------------------------------------------ { MT_Team t = _teams[teamNdx]; for (int i = 0; i < t.Combatants.Count; i++) { if (t.Combatants[i].IsOut == false) { return(false); } } return(true); }
// ------------------------------------------------------------------------------- public void SetTeams(BS_MatchParams param, LG_League league) // ------------------------------------------------------------------------------- { _teams = new List <MT_Team>(); for (int teamNdx = 0; teamNdx < param.TeamIds.Count; teamNdx++) { var teamId = param.TeamIds[teamNdx]; MT_Team ti = new MT_Team(); // TO DO add syntactic sugar to get teams from league rather than finder ti.Initialize(teamNdx, PT_Game.Finder.Get <BS_Team>(teamId), param); _teams.Add(ti); } ; }
public void Shutdown() { _base = null; _pawn = null; _team = null; }