Beispiel #1
0
        public override void StartGame()
        {
            base.StartGame();

            // drop the ball on the gauntlet
            m_DeathBall = new DeathBall();
            m_DeathBall.MoveToWorld(Location, Map);
        }
Beispiel #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
                this.m_Challenger = reader.ReadMobile();

                this.m_Organizers.Add(this.m_Challenger);

                this.m_GameLocked     = reader.ReadBool();
                this.m_GameInProgress = reader.ReadBool();
                this.m_TotalPurse     = reader.ReadInt();
                this.m_EntryFee       = reader.ReadInt();
                this.m_ArenaSize      = reader.ReadInt();
                this.m_TargetScore    = reader.ReadInt();
                this.m_DeathBall      = (DeathBall)reader.ReadItem();

                int count = reader.ReadInt();
                for (int i = 0; i < count; i++)
                {
                    ChallengeEntry entry = new ChallengeEntry();
                    entry.Participant = reader.ReadMobile();
                    string sname = reader.ReadString();
                    // look up the enum by name
                    ChallengeStatus status = ChallengeStatus.None;
                    try
                    {
                        status = (ChallengeStatus)Enum.Parse(typeof(ChallengeStatus), sname);
                    }
                    catch
                    {
                    }
                    entry.Status          = status;
                    entry.Accepted        = reader.ReadBool();
                    entry.PageBeingViewed = reader.ReadInt();
                    entry.Score           = reader.ReadInt();
                    entry.Winner          = reader.ReadBool();
                    entry.Team            = reader.ReadInt();

                    this.Participants.Add(entry);
                }
                break;
            }

            if (this.GameCompleted)
            {
                Timer.DelayCall(this.PostGameDecayTime, new TimerCallback(Delete));
            }

            // start the challenge timer
            this.StartChallengeTimer();

            this.SetNameHue();
        }
Beispiel #3
0
        public override void StartGame()
        {
            base.StartGame();

            // drop the ball on the gauntlet
            this.m_DeathBall = new DeathBall();
            this.m_DeathBall.MoveToWorld(this.Location, this.Map);

            this.SetNameHue();
        }
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            switch(version)
            {
            case 0:
                m_Challenger = reader.ReadMobile();

                m_Organizers.Add(m_Challenger);

                m_GameLocked = reader.ReadBool();
                m_GameInProgress = reader.ReadBool();
                m_TotalPurse = reader.ReadInt();
                m_EntryFee = reader.ReadInt();
                m_ArenaSize = reader.ReadInt();
                m_TargetScore = reader.ReadInt();
                m_DeathBall = (DeathBall)reader.ReadItem();

                int count = reader.ReadInt();
                for(int i = 0;i<count;i++)
                {
                    ChallengeEntry entry = new ChallengeEntry();
                    entry.Participant = reader.ReadMobile();
                    string sname = reader.ReadString();
                    // look up the enum by name
                    ChallengeStatus status = ChallengeStatus.None;
                    try{
                    status = (ChallengeStatus)Enum.Parse(typeof(ChallengeStatus), sname);
                    } catch{}
                    entry.Status = status;
                    entry.Accepted = reader.ReadBool();
                    entry.PageBeingViewed = reader.ReadInt();
                    entry.Score = reader.ReadInt();
                    entry.Winner = reader.ReadBool();
                    entry.Team = reader.ReadInt();
                    
                    Participants.Add(entry);
                }
                break;
            }
            
             if(GameCompleted)
                Timer.DelayCall( PostGameDecayTime, new TimerCallback( Delete ) );
            
            // start the challenge timer
            StartChallengeTimer();
            
            SetNameHue();
        }
        public override void StartGame()
        {
            base.StartGame();

            // drop the ball on the gauntlet
            m_DeathBall = new DeathBall();
            m_DeathBall.MoveToWorld(Location, Map);

            SetNameHue();
        }
Beispiel #6
0
        public override void StartGame()
        {
            base.StartGame();

            // drop the ball on the gauntlet
            this.m_DeathBall = new DeathBall();
            this.m_DeathBall.MoveToWorld(this.Location, this.Map);

            this.SetNameHue();
        }