Cast() публичный Метод

public Cast ( ) : bool
Результат bool
Пример #1
0
		public void Cast( Spell spell )
		{
			bool m = Movable;

			Movable = false;
			spell.Cast();
			Movable = m;
		}
Пример #2
0
		public void Cast( Spell spell )
		{
			if ( CanUse( spell ) )
			{
				bool m = Movable;

				Movable = false;
				spell.Cast();
				Movable = m;
			}
			else
				spell.Caster.SendMessage( "You do not have the experience to wield the magical power of this item." );
		}
Пример #3
0
        public void Cast(Spell spell)
        {
            bool m = this.Movable;

            this.Movable = false;
            spell.Cast();
            this.Movable = m;
        }
Пример #4
0
		public void Cast( Spell spell )
		{
			bool clone = Movable;
			Movable = false;
			spell.Cast();
			Movable = clone;
		}