Server.Mobiles.PlayerMobile.Animate C# (CSharp) Method

Animate() public method

public Animate ( int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : void
action int
frameCount int
repeatCount int
forward bool
repeat bool
delay int
return void
		public override void Animate( int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay )
		{
			base.Animate( action, frameCount, repeatCount, forward, repeat, delay );
		}

Usage Example

コード例 #1
0
ファイル: RacialAbilities.cs プロジェクト: nogu3ira/xrunuo
        private static void EventSink_RacialAbilityUsed(RacialAbilityRequestEventArgs e)
        {
            PlayerMobile from = e.Mobile as PlayerMobile;

            if (from == null)
            {
                return;
            }

            switch (e.AbilityID)
            {
            case 1:
            {
                /*
                 * TODO (SA): ¿Dónde van estos CliLocs?
                 * - You must heal before flying.	1112454
                 * - You can't use this while flying!	1113414
                 * - You may not continue while flying.	1113589
                 */

                if (from.Race == Race.Gargoyle)
                {
                    if (!from.Flying)
                    {
                        if (from.Spell == null)
                        {
                            Spell spell = new FlySpell(from);

                            spell.Cast();
                        }
                    }
                    else if (IsValidLandLocation(from.Location, from.Map))
                    {
                        from.Animate(0xA);
                        from.Flying = false;
                    }
                    else
                    {
                        from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1113081);                                           // You may not land here.
                    }
                }

                break;
            }
            }
        }
All Usage Examples Of Server.Mobiles.PlayerMobile::Animate