Esempio n. 1
0
 public void Initialize(BS_Combatant cmbt, MT_Team t)
 {
     _team = t;
     _pawn = null;
     _base = cmbt;
     IsOut = false;
 }
Esempio n. 2
0
        // ------------------------------------------------------------------------------
        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);
        }
Esempio n. 3
0
        // -------------------------------------------------------------------------------
        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);
            }
            ;
        }
Esempio n. 4
0
 public void Shutdown()
 {
     _base = null;
     _pawn = null;
     _team = null;
 }