本文整理汇总了C#中DisturbType类的典型用法代码示例。如果您正苦于以下问题:C# DisturbType类的具体用法?C# DisturbType怎么用?C# DisturbType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DisturbType类属于命名空间,在下文中一共展示了DisturbType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:FlySpell.cs
示例2: Disturb
public void Disturb(DisturbType type)
{
DoFizzle();
}
开发者ID:rberiot,项目名称:imaginenation,代码行数:4,代码来源:Spell.cs
示例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!
}
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:8,代码来源:RacialAbilities.cs
示例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.
}
开发者ID:Ravenwolfe,项目名称:Origins,代码行数:5,代码来源:Spell.cs
示例5: Disturb
public void Disturb( DisturbType type )
{
Disturb( type, true, false );
}
开发者ID:Ravenwolfe,项目名称:Origins,代码行数:4,代码来源:Spell.cs
示例6: OnDisturb
public override void OnDisturb( DisturbType type, bool message )
{
Caster.NextSkillTime = DateTime.Now;
base.OnDisturb( type, message );
}
开发者ID:Leorgrium,项目名称:runuo,代码行数:6,代码来源:SpiritSpeak.cs
示例7: OnDisturb
public virtual void OnDisturb( DisturbType type, bool message )
{
if ( message )
m_Caster.SendLocalizedMessage( 500641 ); // Your concentration is disturbed, thus ruining thy spell.
}
开发者ID:greeduomacro,项目名称:uodarktimes-1,代码行数:5,代码来源:Spell.cs
示例8: OnDisturb
public override void OnDisturb(DisturbType type, bool message)
{
base.OnDisturb(type, message);
if (message)
{
Caster.PlaySound(0x1D6);
}
}
开发者ID:bittiez,项目名称:ServUO,代码行数:9,代码来源:PaladinSpell.cs
示例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));
}
}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:10,代码来源:Spell.cs
示例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!
}
开发者ID:Crome696,项目名称:ServUO,代码行数:5,代码来源:FlySpell.cs
示例11: CheckDisturb
public override bool CheckDisturb(DisturbType type, bool firstCircle, bool resistable)
{
// Cannot disturb Chivalry spells
return false;
}
开发者ID:Crome696,项目名称:ServUO,代码行数:5,代码来源:PaladinSpell.cs
示例12: OnDisturb
public override void OnDisturb( DisturbType type, bool message )
{
}
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:3,代码来源:BaseGMJewel.cs
示例13: OnDisturb
public override void OnDisturb(DisturbType type, bool message)
{
if (message && !m_Stop)
{
Caster.SendMessage(54, "Your ethics spell was disturbed!");
}
}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:Power.cs
示例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();
}
}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:55,代码来源:Spell.cs
示例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);
}
开发者ID:rberiot,项目名称:imaginenation,代码行数:7,代码来源:Spell.cs
示例16: CheckDisturb
public override bool CheckDisturb( DisturbType type, bool checkFirst, bool resistable )
{
return false;
}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:4,代码来源:etherealstaff.cs
示例17: OnDisturb
public override void OnDisturb( DisturbType type, bool message )
{
if( message && !m_Stop )
Caster.SendLocalizedMessage( 1080074 ); // You have been disrupted while attempting to summon your pet!
}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:5,代码来源:BallOfSummoning.cs
示例18: OnDisturb
public override void OnDisturb( DisturbType type, bool message )
{
Caster.NextSkillTime = DateTime.Now + TimeSpan.FromSeconds( 0.5 );
base.OnDisturb( type, message );
}
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:6,代码来源:SpiritSpeak.cs
示例19: CheckDisturb
public virtual bool CheckDisturb( DisturbType type, bool firstCircle, bool resistable )
{
if ( resistable && m_Scroll is BaseWand )
return false;
return true;
}
开发者ID:greeduomacro,项目名称:uodarktimes-1,代码行数:7,代码来源:Spell.cs
示例20: OnDisturb
public override void OnDisturb(DisturbType type, bool message)
{
base.OnDisturb(type, message);
_Stone.LastUsed = DateTime.Now.Subtract(_Stone.Cooldown);
}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:6,代码来源:HS_HearthSpell.cs
注:本文中的DisturbType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论