Beispiel #1
0
        public void ResetPlayers()
        {
            m_display = new TeamDisplay(this);
            MainPlayer.StateManager.ChangeState(0);
            MainPlayer.SetLocalAnimation(0, 0);
            MainPlayer.PlayerControl = PlayerControl.NoControl;
            MainPlayer.Life          = MainPlayer.Constants.MaximumLife;
            MainPlayer.Power         = 0;
            MainPlayer.SoundManager.Stop();
            MainPlayer.JugglePoints = MainPlayer.Constants.AirJuggle;

            if (Side == TeamSide.Left)
            {
                MainPlayer.CurrentLocation = Engine.Stage.P1Start;
                MainPlayer.CurrentFacing   = Engine.Stage.P1Facing;
                if (TeamMate != null)
                {
                    TeamMate.CurrentLocation = Engine.Stage.P3Start;
                    TeamMate.CurrentFacing   = Engine.Stage.P3Facing;
                }
            }
            else
            {
                MainPlayer.CurrentLocation = Engine.Stage.P2Start;
                MainPlayer.CurrentFacing   = Engine.Stage.P2Facing;
                if (TeamMate != null)
                {
                    TeamMate.CurrentLocation = Engine.Stage.P4Start;
                    TeamMate.CurrentFacing   = Engine.Stage.P4Facing;
                }
            }

            if (TeamMate != null)
            {
                TeamMate.StateManager.ChangeState(0);
                TeamMate.SetLocalAnimation(0, 0);
                TeamMate.PlayerControl = PlayerControl.NoControl;
                TeamMate.Life          = TeamMate.Constants.MaximumLife;
                TeamMate.Power         = 0;
                TeamMate.SoundManager.Stop();
                TeamMate.JugglePoints = TeamMate.Constants.AirJuggle;

                if (Side == TeamSide.Left)
                {
                    MainPlayer.CurrentLocation = Engine.Stage.P1Start;
                    MainPlayer.CurrentFacing   = Engine.Stage.P1Facing;
                }
                else
                {
                    MainPlayer.CurrentLocation = Engine.Stage.P2Start;
                    MainPlayer.CurrentFacing   = Engine.Stage.P2Facing;
                }
            }
        }
Beispiel #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", "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;
		}
Beispiel #3
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;
        }