Server.Mobiles.TownCrier.TownCrier C# (CSharp) Méthode

TownCrier() private méthode

private TownCrier ( ) : System
Résultat System
		public TownCrier()
		{
			m_Instances.Add( this );

			InitStats( 100, 100, 25 );

			Title = "the town crier";
			Hue = Utility.RandomSkinHue();

			NameHue = 0x35;

			if ( this.Female = Utility.RandomBool() )
			{
				this.Body = 0x191;
				this.Name = NameList.RandomName( "female" );
			}
			else
			{
				this.Body = 0x190;
				this.Name = NameList.RandomName( "male" );
			}

			AddItem( new FancyShirt( Utility.RandomBlueHue() ) );

			Item skirt;

			switch ( Utility.Random( 2 ) )
			{
				case 0: skirt = new Skirt(); break;
				default: case 1: skirt = new Kilt(); break;
			}

			skirt.Hue = Utility.RandomGreenHue();

			AddItem( skirt );

			AddItem( new FeatheredHat( Utility.RandomGreenHue() ) );

			Item boots;

			switch ( Utility.Random( 2 ) )
			{
				case 0: boots = new Boots(); break;
				default: case 1: boots = new ThighBoots(); break;
			}

			AddItem( boots );

			Utility.AssignRandomHair( this );
		}

Same methods

TownCrier::TownCrier ( Serial serial ) : System