本文整理汇总了C#中Game.Logic.Phy.Object.Living类的典型用法代码示例。如果您正苦于以下问题:C# Living类的具体用法?C# Living怎么用?C# Living使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Living类属于Game.Logic.Phy.Object命名空间,在下文中一共展示了Living类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: player_AfterKillingLiving
void player_AfterKillingLiving(Living living, Living target, int damageAmount, int criticalAmount)
{
if (IsTrigger)
{
target.AddEffect(new ReduceStrengthEffect(2), 0);
}
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:ReduceStrengthEquipEffect.cs
示例2: player_AfterKilledByLiving
void player_AfterKilledByLiving(Living living, Living target, int damageAmount, int criticalAmount)
{
if (IsTrigger)
{
target.AddBlood(-m_count);
}
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:ReflexDamageEquipEffect.cs
示例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);
}
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:ContinueReduceBloodEquipEffect.cs
示例4: player_AfterKillingLiving
void player_AfterKillingLiving(Living living, Living target, int damageAmount, int criticalAmount)
{
if (IsTrigger)
{
target.AddEffect(new LockDirectionEffect(2), 0);
}
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:LockDirectionEquipEffect.cs
示例5: OnAttached
public sealed override void OnAttached(Living living)
{
if (living is Player)
{
OnAttachedToPlayer(living as Player);
}
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:BasePlayerEffect.cs
示例6: LivingDirectSetXYAction
public LivingDirectSetXYAction(Living living, int x, int y, int delay)
: base(delay)
{
m_living = living;
m_x = x;
m_y = y;
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:LivingDirectSetXYAction.cs
示例7: OnRemoved
public sealed override void OnRemoved(Living living)
{
if (living is Player)
{
OnRemovedFromPlayer(living as Player);
}
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:BasePlayerEffect.cs
示例8: LivingSealAction
public LivingSealAction(Living Living, Player target, int type, int delay)
: base(delay, 2000)
{
m_Living = Living;
m_Target = target;
m_Type = type;
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:LivingSealAction.cs
示例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;
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:LivingSayAction.cs
示例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);
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:ContinueReduceDamageEffect.cs
示例11: LivingPlayeMovieAction
public LivingPlayeMovieAction(Living living, string action, int delay, int movieTime)
: base(delay, movieTime)
{
m_living = living;
m_action = action;
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:LivingPlayeMovieAction.cs
示例12: player_BeginFitting
void player_BeginFitting(Living living)
{
m_count--;
if (m_count <= 0)
{
Stop();
}
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:8,代码来源:SealEffect.cs
示例13: Start
public override bool Start(Living living)
{
if (living is Player)
{
return base.Start(living);
}
return false;
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:BasePlayerEffect.cs
示例14: player_BeginFitting
void player_BeginFitting(Living player)
{
m_count--;
if (m_count < 0)
{
Stop();
}
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:IceFronzeEffect.cs
示例15: player_BeginFitting
private void player_BeginFitting(Living player)
{
m_count--;
if (m_count <= 0)
{
this.Stop();
}
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:InvinciblyEffect.cs
示例16: player_BeforeTakeDamage
void player_BeforeTakeDamage(Living living, Living source, ref int damageAmount, ref int criticalAmount)
{
if (IsTrigger)
{
living.AddBlood(damageAmount * m_count / 100);
living.Game.SendEquipEffect(living, LanguageMgr.GetTranslation("AssimilateBloodEffect.Success"));
//living.Game.SendAttackEffect(living, 1);
}
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:9,代码来源:AssimilateBloodEffect.cs
示例17: player_BeforeTakeDamage
void player_BeforeTakeDamage(Living living, Living source, ref int damageAmount, ref int criticalAmount)
{
if (IsTrigger)
{
damageAmount += m_count;
living.Game.SendEquipEffect(living, LanguageMgr.GetTranslation("AddDamageEffect.Success"));
// living.Game.SendAttackEffect(living, 1); reEn
}
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:9,代码来源:AddDamageEffect.cs
示例18: LivingRangeAttackingAction
public LivingRangeAttackingAction(Living living, int fx, int tx, string action, int delay, List<Player>players)
: base(delay, 1000)
{
m_living = living;
m_players = players;
m_fx = fx;
m_tx = tx;
m_action = action;
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:9,代码来源:LivingRangeAttackingAction.cs
示例19: Start
public virtual bool Start(Living living)
{
m_living = living;
if (m_living.EffectList.Add(this))
{
return true;
}
return false;
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:9,代码来源:AbstractEffect.cs
示例20: player_AfterKilledByLiving
void player_AfterKilledByLiving(Living living, Living target, int damageAmount, int criticalAmount)
{
if (rand.Next(100) < m_probability)
{
living.ShootMovieDelay = 50;
SpellMgr.ExecuteSpell(living.Game, living as Player, ItemMgr.FindItemTemplate(10021));
// living.Game.SendEquipEffect(living, LanguageMgr.GetTranslation("NoHoleEquipEffect.Success"));
}
}
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:9,代码来源:NoHoleEquipEffect.cs
注:本文中的Game.Logic.Phy.Object.Living类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论