Esempio n. 1
0
		public Team(FightEngine engine, TeamSide side)
			: base(engine)
		{
			if (side != TeamSide.Left && side != TeamSide.Right) throw new ArgumentException("Side must be either Left or Right", "side");

			m_side = side;
			m_victorystatus = new VictoryStatus(this);
			m_display = new TeamDisplay(this);
			m_winhistory = new List<Win>(9);
			m_p1 = null;
			m_p2 = null;
		}
Esempio n. 2
0
        public Team(FightEngine engine, TeamSide side)
            : base(engine)
        {
            if (side != TeamSide.Left && side != TeamSide.Right)
            {
                throw new ArgumentException("Side must be either Left or Right", nameof(side));
            }

            m_side          = side;
            m_victorystatus = new VictoryStatus(this);
            m_winhistory    = new List <Win>(9);
            m_p1            = null;
            m_p2            = null;
        }