本文整理汇总了C#中Game.Logic.Phy.Object.Living类的典型用法代码示例。如果您正苦于以下问题:C# Living类的具体用法?C# Living怎么用?C# Living使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Living类属于Game.Logic.Phy.Object命名空间,在下文中一共展示了Living类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: player_AfterKillingLiving
void player_AfterKillingLiving(Living living, Living target, int damageAmount, int criticalAmount)
{
if (IsTrigger)
{
target.AddEffect(new ReduceStrengthEffect(2), 0);
}
}
示例2: player_AfterKilledByLiving
void player_AfterKilledByLiving(Living living, Living target, int damageAmount, int criticalAmount)
{
if (IsTrigger)
{
target.AddBlood(-m_count);
}
}
示例3: player_AfterKillingLiving
protected void player_AfterKillingLiving(Living living, Living target, int damageAmount, int criticalAmount)
{
if (IsTrigger)
{
target.AddEffect(new ContinueReduceBloodEffect(2,-m_blood), 0);
}
}
示例4: player_AfterKillingLiving
void player_AfterKillingLiving(Living living, Living target, int damageAmount, int criticalAmount)
{
if (IsTrigger)
{
target.AddEffect(new LockDirectionEffect(2), 0);
}
}
示例5: OnAttached
public sealed override void OnAttached(Living living)
{
if (living is Player)
{
OnAttachedToPlayer(living as Player);
}
}
示例6: LivingDirectSetXYAction
public LivingDirectSetXYAction(Living living, int x, int y, int delay)
: base(delay)
{
m_living = living;
m_x = x;
m_y = y;
}
示例7: OnRemoved
public sealed override void OnRemoved(Living living)
{
if (living is Player)
{
OnRemovedFromPlayer(living as Player);
}
}
示例8: LivingSealAction
public LivingSealAction(Living Living, Player target, int type, int delay)
: base(delay, 2000)
{
m_Living = Living;
m_Target = target;
m_Type = type;
}
示例9: LivingSayAction
public LivingSayAction(Living living, string msg, int type, int delay, int finishTime)
: base(delay, finishTime)
{
m_living = living;
m_msg = msg;
m_type = type;
}
示例10: OnRemoved
public override void OnRemoved(Living living)
{
living.BeginSelfTurn -= new LivingEventHandle(player_BeginFitting);
//living.IsFrost = false;
(living as Player).BaseDamage = (living as Player).BaseDamage * 100 / 5;
living.Game.SendPlayerPicture(living, 4, false);
}
示例11: LivingPlayeMovieAction
public LivingPlayeMovieAction(Living living, string action, int delay, int movieTime)
: base(delay, movieTime)
{
m_living = living;
m_action = action;
}
示例12: player_BeginFitting
void player_BeginFitting(Living living)
{
m_count--;
if (m_count <= 0)
{
Stop();
}
}
示例13: Start
public override bool Start(Living living)
{
if (living is Player)
{
return base.Start(living);
}
return false;
}
示例14: player_BeginFitting
void player_BeginFitting(Living player)
{
m_count--;
if (m_count < 0)
{
Stop();
}
}
示例15: player_BeginFitting
private void player_BeginFitting(Living player)
{
m_count--;
if (m_count <= 0)
{
this.Stop();
}
}