public override bool Equals(object obj)
        {
            if (obj.GetType() != typeof(SetUp))
            {
                return(false);
            }
            SetUp objSetUp = (SetUp)obj;

            if (objSetUp.GetHashCode() == GetHashCode())
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public TeamSetUp(List <Player> AllPlayers, Map_JSON info)
        {
            A = new SetUp();
            B = new SetUp();
            List <PlayerBombSite> Players = new List <PlayerBombSite>();

            foreach (Player p in AllPlayers)
            {
                if (p.TeamSide == Team.CounterTerrorist)
                {
                    Players.Add(new PlayerBombSite(p.Name, p.Position));
                }
            }
            A.DetermineSetUp(Players, info, SetUp.BombSite.A);
            B.DetermineSetUp(Players, info, SetUp.BombSite.B);
        }
Ejemplo n.º 3
0
 public TeamSetUp(SetUp a, SetUp b)
 {
     A = a;
     B = b;
 }
Ejemplo n.º 4
0
 public TeamSetUp(SetUp a, SetUp b, Round.RoundType moneyType)
 {
     A         = a;
     B         = b;
     MoneyType = moneyType;
 }