本文整理汇总了C#中DisturbType类的典型用法代码示例。如果您正苦于以下问题:C# DisturbType类的具体用法?C# DisturbType怎么用?C# DisturbType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DisturbType类属于命名空间,在下文中一共展示了DisturbType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckDisturb
public override bool CheckDisturb(DisturbType type, bool checkFirst, bool resistable)
{
if (type == DisturbType.EquipRequest || type == DisturbType.UseRequest/* || type == DisturbType.Hurt*/)
return false;
return true;
}
示例2: Disturb
public void Disturb(DisturbType type)
{
DoFizzle();
}
示例3: OnDisturb
public override void OnDisturb( DisturbType type, bool message )
{
if ( Caster is PlayerMobile )
( (PlayerMobile) Caster ).Flying = false;
if ( message )
Caster.SendLocalizedMessage( 1113192 ); // You have been disrupted while attempting to fly!
}
示例4: OnDisturb
public virtual void OnDisturb( DisturbType type, bool message )
{
if ( message )
m_Caster.SendAsciiMessage( "Your concentration is disturbed, thus ruining thy spell." ); // Your concentration is disturbed, thus ruining thy spell.
}
示例5: Disturb
public void Disturb( DisturbType type )
{
Disturb( type, true, false );
}
示例6: OnDisturb
public override void OnDisturb( DisturbType type, bool message )
{
Caster.NextSkillTime = DateTime.Now;
base.OnDisturb( type, message );
}
示例7: OnDisturb
public virtual void OnDisturb( DisturbType type, bool message )
{
if ( message )
m_Caster.SendLocalizedMessage( 500641 ); // Your concentration is disturbed, thus ruining thy spell.
}
示例8: OnDisturb
public override void OnDisturb(DisturbType type, bool message)
{
base.OnDisturb(type, message);
if (message)
{
Caster.PlaySound(0x1D6);
}
}
示例9: OnDisturb
public virtual void OnDisturb( DisturbType type, bool message )
{
if( message )
m_Caster.SendLocalizedMessage(500641); // Your concentration is disturbed, thus ruining thy spell.
if( m_Caster.Player && m_Caster.Spell == this )
{
EventDispatcher.InvokeSpellFailed(new SpellEventArgs((Player)m_Caster, this));
}
}
示例10: OnDisturb
public override void OnDisturb(DisturbType type, bool message)
{
if (message && !this.m_Stop)
this.Caster.SendLocalizedMessage(1113192); // You have been disrupted while attempting to fly!
}
示例11: CheckDisturb
public override bool CheckDisturb(DisturbType type, bool firstCircle, bool resistable)
{
// Cannot disturb Chivalry spells
return false;
}
示例12: OnDisturb
public override void OnDisturb( DisturbType type, bool message )
{
}
示例13: OnDisturb
public override void OnDisturb(DisturbType type, bool message)
{
if (message && !m_Stop)
{
Caster.SendMessage(54, "Your ethics spell was disturbed!");
}
}
示例14: Disturb
public void Disturb( DisturbType type, bool firstCircle, bool resistable )
{
if ( !CheckDisturb( type, firstCircle, resistable ) )
return;
if ( m_State == SpellState.Casting )
{
if ( !firstCircle && Circle == SpellCircle.First && !Core.AOS )
return;
m_State = SpellState.None;
//m_Caster.NextSpellTime = DateTime.Now + TimeSpan.FromSeconds(0.20 + (0.20 * (int)Circle) );
try
{
TimeSpan NextSpellDelay = TimeSpan.FromSeconds((0.90 + (0.41 * (int)Circle)) * (1 - CastDelayFinishFactor));
m_Caster.NextSpellTime = DateTime.Now + NextSpellDelay;
}
catch(Exception e)
{
//In case of an exception use old calculation.
m_Caster.NextSpellTime = DateTime.Now + TimeSpan.FromSeconds(0.20 + (0.20 * (int)Circle) );
//and log...
GeneralLogging.WriteLine("CrashDebug", "Exception:\n{0}\n{1}\nCastDelayFinishFactor: {2}\nCircle: {3}", e.Message, e.StackTrace, CastDelayFinishFactor, (int)Circle);
}
//m_Caster.SendMessage("Debug: Disturb, FinishFactor: {0}, NextSpellTime: {1}", CastDelayFinishFactor, NextSpellDelay);
m_Caster.Spell = null;
OnDisturb( type, true );
if ( m_CastTimer != null )
m_CastTimer.Stop();
if ( m_AnimTimer != null )
m_AnimTimer.Stop();
if ( Core.AOS && m_Caster.Player && type == DisturbType.Hurt )
DoHurtFizzle();
}
else if ( m_State == SpellState.Sequencing )
{
if ( !firstCircle && Circle == SpellCircle.First && !Core.AOS )
return;
m_State = SpellState.None;
m_Caster.Spell = null;
OnDisturb( type, false );
Targeting.Target.Cancel( m_Caster );
if ( Core.AOS && m_Caster.Player && type == DisturbType.Hurt )
DoHurtFizzle();
}
}
示例15: OnDisturb
public virtual void OnDisturb(DisturbType type, bool message)
{
//if ( message )
// m_Caster.SendLocalizedMessage( 500641 ); // Your concentration is disturbed, thus ruining thy spell.
m_Caster.FixedEffect(0x3735, 6, 30);
m_Caster.PlaySound(0x5C);
}