Example #1
0
            /// <summary>
            /// Grab the fighters and place them into
            /// the staging area
            /// </summary>
            public void BeginStage()
            {
                if (b.Team1 != null && b.Team2 != null)
                {
                    m_Team1 = b.Team1;
                    m_Team2 = b.Team2;
                }
                else if (b.Team1 != null && b.refWinners)
                {
                    m_Team1 = b.Team1;
                    m_Team2 = b.refMatch1.Winner;
                }
                else if (b.Team1 != null && !b.refWinners)
                {
                    m_Team1 = b.Team1;
                    m_Team2 = b.refMatch1.Loser;
                }
                else if (b.refWinners)
                {
                    m_Team1 = b.refMatch1.Winner;
                    m_Team2 = b.refMatch2.Winner;
                }
                else
                {
                    m_Team1 = b.refMatch1.Loser;
                    m_Team2 = b.refMatch2.Loser;
                }

                MoveTeam(m_Team1, a.Map, a.StagingAreaOne, String.Format("You will have {0} seconds to suit up.", staging.Seconds), false);
                MoveTeam(m_Team2, a.Map, a.StagingAreaTwo, String.Format("You will have {0} seconds to suit up.", staging.Seconds), false);
                stagedelay = DateTime.Now + staging;
                timer      = new AnnouncerTimer(this, m_Team1, m_Team2);

                this.Start();
            }
Example #2
0
            /// <summary>
            /// Grab the fighters and place them into
            /// the staging area
            /// </summary>
            public void BeginStage()
            {
                if (b.Team1 != null && b.Team2 != null)
                {
                    m_Team1 = b.Team1;
                    m_Team2 = b.Team2;
                }
                else if (b.Team1 != null && b.refWinners)
                {
                    m_Team1 = b.Team1;
                    m_Team2 = b.refMatch1.Winner;
                }
                else if (b.Team1 != null && !b.refWinners)
                {
                    m_Team1 = b.Team1;
                    m_Team2 = b.refMatch1.Loser;
                }
                else if (b.refWinners)
                {
                    m_Team1 = b.refMatch1.Winner;
                    m_Team2 = b.refMatch2.Winner;
                }
                else
                {
                    m_Team1 = b.refMatch1.Loser;
                    m_Team2 = b.refMatch2.Loser;
                }

                MoveTeam(m_Team1, a.Map, a.StagingAreaOne, String.Format("You will have {0} seconds to suit up.", staging.Seconds), false);
                MoveTeam(m_Team2, a.Map, a.StagingAreaTwo, String.Format("You will have {0} seconds to suit up.", staging.Seconds), false);
                stagedelay = DateTime.Now + staging;
                timer = new AnnouncerTimer(this, m_Team1, m_Team2);

                this.Start();
            }