本文整理汇总了C#中FOnline.Server.Critter类的典型用法代码示例。如果您正苦于以下问题:C# Critter类的具体用法?C# Critter怎么用?C# Critter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Critter类属于FOnline.Server命名空间,在下文中一共展示了Critter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GlobalCritterStealingEventArgs
public GlobalCritterStealingEventArgs(Critter cr, Critter thief, Item item, int count)
{
this.Cr = cr;
this.Thief = thief;
this.Item = Item;
this.Count = Count;
}
示例2: RaiseUse
// called by engine
internal bool RaiseUse(Critter cr, Critter on_critter, Item on_item, IntPtr on_scenery)
{
if (use != null)
{
var e = new ItemUseEventArgs(this, cr, on_critter, on_item, Scenery.FromNative(on_scenery));
use(this, e);
return e.Prevent;
}
return false;
}
示例3: RaiseAttack
// called by engine
bool RaiseAttack(Critter cr, Critter target)
{
if (Attack != null)
{
var e = new ItemAttackEventArgs(this, cr, target);
Attack(this, e);
return e.Prevent;
}
return false;
}
示例4: AddAttackPlane
public static bool AddAttackPlane(this Critter npc, uint priority, Critter target, int minHp)
{
NpcPlane plane=Global.CreatePlane();
plane.Type=PlaneType.Attack;
plane.Priority=(priority==0?Priorities.Attack:priority);
plane.Attack_TargId=target.Id;
plane.Attack_MinHp=minHp;
plane.Attack_IsGag=false;
plane.Attack_GagHexX=0;
plane.Attack_GagHexY=0;
plane.Attack_LastHexY=target.HexY;
plane.Attack_LastHexX=target.HexX;
plane.Run=false;
return npc.AddPlane(plane);
}
示例5: RaiseOutCritter
// called by engine
void RaiseOutCritter(Critter cr)
{
if (OutCritter != null)
OutCritter(this, new MapInOutCritterEventArgs(this, cr));
}
示例6: MapTurnBasedProcessEventArgs
public MapTurnBasedProcessEventArgs(Map map, Critter cr, bool begin_turn)
: base(map)
{
this.Cr = cr;
this.BeginTurn = begin_turn;
}
示例7: MapCritterDeadEventArgs
public MapCritterDeadEventArgs(Map map, Critter cr, Critter killer)
: base(map)
{
this.Cr = cr;
this.Killer = killer;
}
示例8: BeginTurnBased
public virtual void BeginTurnBased(Critter first_turn_crit)
{
Map_BeginTurnBased(thisptr, first_turn_crit.ThisPtr);
}
示例9: RunFlyEffect
public virtual void RunFlyEffect(ushort pid, Critter from_cr, Critter to_cr, ushort from_hx, ushort from_hy, ushort to_hx, ushort to_hy)
{
Map_RunFlyEffect(thisptr, pid, (IntPtr)from_cr, (IntPtr)to_cr, from_hx, from_hy, to_hx, to_hy);
}
示例10: EventOutCritter
public virtual void EventOutCritter(Critter cr)
{
Map_EventOutCritter(thisptr, cr.ThisPtr);
}
示例11: CritterBarterEventArgs
public CritterBarterEventArgs(Critter cr, Critter cr_barter, bool attach, uint barter_count)
: base(cr)
{
this.CrBarter = cr_barter;
this.Attach = attach;
this.BarterCount = barter_count;
}
示例12: CritterAttackEventArgs
public CritterAttackEventArgs(Critter cr, Critter target)
: base(cr)
{
this.Target = target;
}
示例13: CritterAttackedEventArgs
public CritterAttackedEventArgs(Critter cr, Critter attacker)
: base(cr)
{
this.Attacker = attacker;
}
示例14: RaiseUseSkillOnMe
// called by engine
bool RaiseUseSkillOnMe(Critter who_use, int skill)
{
if (UseSkillOnMe != null)
{
var e = new CritterUseSkillOnMeEventArgs(this, who_use, skill);
UseSkillOnMe(this, e);
return e.Prevent;
}
return false;
}
示例15: CritterGlobalInviteEventArgs
public CritterGlobalInviteEventArgs(Critter cr, Item car, uint encounter_descriptor, int combat_mode)
: base(cr)
{
this.Car = car;
this.EncounterDescriptor = encounter_descriptor;
this.CombatMode = combat_mode;
}