Ejemplo n.º 1
0
		public BombermanStone( bool destructable, BombermanGame game ) : base( 0x1363 )
		{
            m_Game = game;
			Movable = false;
			Weight = 1.0;
			Name = "Bomberman stone";
			if(destructable)
				Hue = 1301;
			m_Destructable = destructable;
			
			switch( Utility.Random( 22 ) )
			{
				case 1:
				m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.Strength;
				break;
				case 2:
				m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.BombAmount;
				break;
                case 3:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.Strength;
                break;
                case 4:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.BombAmount;
                break;
                case 5:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.SpreadSpeed;
                break;
                case 6:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.KickBombPlacer;
                break;
				default:
				m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.None;
				break;
			}
		}
Ejemplo n.º 2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 2:
            {
                m_Game  = reader.ReadItem() as BombermanGame;
                m_Owner = reader.ReadMobile();
                goto case 1;
            }

            case 1:
            {
                m_Speed = reader.ReadFloat();

                goto case 0;
            }

            case 0:
            {
                m_Strength     = reader.ReadInt();
                m_MaxBombs     = reader.ReadInt();
                m_BombsInWorld = reader.ReadInt();

                break;
            }
            }
        }
Ejemplo n.º 3
0
		public BombermanBombPlacer( Mobile owner, BombermanGame game ) : base( 0x1ED0 )
		{
            m_Owner = owner;
            m_Game = game;
            Active = false;
            EventItem = true;
			Movable = false;
            LootType = LootType.Newbied;
			Weight = 1.0;
			Name = "Bombplacer";
		}
Ejemplo n.º 4
0
 public BombermanBombPlacer(Mobile owner, BombermanGame game) : base(0x1ED0)
 {
     m_Owner   = owner;
     m_Game    = game;
     Active    = false;
     EventItem = true;
     Movable   = false;
     LootType  = LootType.Newbied;
     Weight    = 1.0;
     Name      = "Bombplacer";
 }
Ejemplo n.º 5
0
		public BombermanBomb( BombermanBombPlacer placer, BombermanGame game ) : base( 0x2256 )
		{
            m_Game = game;
			Movable = false;
			Weight = 1.0;
			Name = "Bomberman bomb";
			Hue = 1;
			
			m_Placer = placer;
			BombTimer m_Timer = new BombTimer( this );
			m_Timer.Start();
		}
Ejemplo n.º 6
0
 public DetonateTimer(BombermanBomb bomb, BombermanGame game, Mobile owner) : base(TimeSpan.Zero, TimeSpan.FromSeconds(bomb.BombPlacer.SpreadSpeed))
 {
     m_Bomb           = bomb;
     m_Game           = game;
     m_Owner          = owner;
     DetonateLocation = m_Bomb.Location;
     DetonateMap      = m_Bomb.Map;
     Priority         = TimerPriority.TwoFiftyMS;
     maxcount         = m_Bomb.BombPlacer.Strength;
     detonateLocation(DetonateLocation);
     m_Bomb.Delete();
 }
Ejemplo n.º 7
0
        public BombermanBomb(BombermanBombPlacer placer, BombermanGame game) : base(0x2256)
        {
            m_Game  = game;
            Movable = false;
            Weight  = 1.0;
            Name    = "Bomberman bomb";
            Hue     = 1;

            m_Placer = placer;
            BombTimer m_Timer = new BombTimer(this);

            m_Timer.Start();
        }
Ejemplo n.º 8
0
        public BombermanStone(bool destructable, BombermanGame game) : base(0x1363)
        {
            m_Game  = game;
            Movable = false;
            Weight  = 1.0;
            Name    = "Bomberman stone";
            if (destructable)
            {
                Hue = 1301;
            }
            m_Destructable = destructable;

            switch (Utility.Random(22))
            {
            case 1:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.Strength;
                break;

            case 2:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.BombAmount;
                break;

            case 3:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.Strength;
                break;

            case 4:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.BombAmount;
                break;

            case 5:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.SpreadSpeed;
                break;

            case 6:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.KickBombPlacer;
                break;

            default:
                m_UpgradeType = BombermanUpgrade.BombermanUpgradeType.None;
                break;
            }
        }
Ejemplo n.º 9
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
                m_Game = reader.ReadItem() as BombermanGame;
                goto case 0;

            case 0:
            {
                m_UpgradeType = (BombermanUpgradeType)reader.ReadByte();

                break;
            }
            }
        }
Ejemplo n.º 10
0
 public BombermanUpgrade(BombermanUpgradeType type, BombermanGame game) : base(0x1ED0)
 {
     m_Game        = game;
     this.Movable  = false;
     this.Weight   = 1.0;
     m_UpgradeType = type;
     if (type == BombermanUpgradeType.BombAmount)
     {
         Hue = 1169;
     }
     if (type == BombermanUpgradeType.SpreadSpeed)
     {
         this.Hue = 3;
     }
     if (type == BombermanUpgradeType.KickBombPlacer)
     {
         this.Hue = 1170;
     }
     Name = "Bomberman upgrade: " + Type;
 }
Ejemplo n.º 11
0
		public BombermanUpgrade( BombermanUpgradeType type, BombermanGame game ) : base( 0x1ED0 )
		{
            m_Game = game;
			this.Movable = false;
			this.Weight = 1.0;
			m_UpgradeType = type;
			if(type == BombermanUpgradeType.BombAmount)
			{
				Hue = 1169;
            }
            if (type == BombermanUpgradeType.SpreadSpeed)
            {
                this.Hue = 3;
            }
            if (type == BombermanUpgradeType.KickBombPlacer)
            {
                this.Hue = 1170;
            }
			Name = "Bomberman upgrade: " + Type;
		}
Ejemplo n.º 12
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();

			switch ( version )
			{
                case 1:
                    m_Game = reader.ReadItem() as BombermanGame;
                    goto case 0;
				case 0:
				{
					m_Placer = reader.ReadItem() as BombermanBombPlacer;

					break;
				}
            }
            BombTimer m_Timer = new BombTimer(this);
            m_Timer.Start();
		}
Ejemplo n.º 13
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
                m_Game = reader.ReadItem() as BombermanGame;
                goto case 0;

            case 0:
            {
                m_Placer = reader.ReadItem() as BombermanBombPlacer;

                break;
            }
            }
            BombTimer m_Timer = new BombTimer(this);

            m_Timer.Start();
        }
Ejemplo n.º 14
0
 public BombermanKickBombPlacer(Mobile owner, BombermanGame game)
     : base(owner, game)
 {
     this.ItemID = 7885;
     Name        = "Kickbombplacer";
 }
Ejemplo n.º 15
0
 public StartTimer(BombermanGame game)
     : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
 {
     m_Game  = game;
     m_Count = 5;
 }
 public BombermanKickBombPlacer(Mobile owner, BombermanGame game)
     : base(owner, game)
 {
     this.ItemID = 7885;
     Name = "Kickbombplacer";
 }
Ejemplo n.º 17
0
			public DetonateTimer(BombermanBomb bomb, BombermanGame game, Mobile owner) : base( TimeSpan.Zero, TimeSpan.FromSeconds( bomb.BombPlacer.SpreadSpeed ) )
			{
				m_Bomb = bomb;
                m_Game = game;
                m_Owner = owner;
                DetonateLocation = m_Bomb.Location;
                DetonateMap = m_Bomb.Map;
			    Priority = TimerPriority.TwoFiftyMS;
                maxcount = m_Bomb.BombPlacer.Strength;
                detonateLocation(DetonateLocation);
                m_Bomb.Delete();
			}
Ejemplo n.º 18
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();

			switch ( version )
			{
                case 1:
                    m_Game = reader.ReadItem() as BombermanGame;
                    goto case 0;
				case 0:
				{
					m_UpgradeType = (BombermanUpgradeType)reader.ReadByte();

					break;
				}
			}
		}
Ejemplo n.º 19
0
 public StartTimer(BombermanGame game)
     : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
 {
     m_Game = game;
     m_Count = 5;
 }
Ejemplo n.º 20
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();

			switch ( version )
            {
                case 2:
                {
                    m_Game = reader.ReadItem() as BombermanGame;
                    m_Owner = reader.ReadMobile();
                    goto case 1;
                }
				case 1:
                {

                        m_Speed = reader.ReadFloat();

                    goto case 0;
                }
                case 0:
                {
                    m_Strength = reader.ReadInt();
                    m_MaxBombs = reader.ReadInt();
                    m_BombsInWorld = reader.ReadInt();

                    break;
                }
			}
		}