• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Server.Critter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中FOnline.Server.Critter的典型用法代码示例。如果您正苦于以下问题:C# Critter类的具体用法?C# Critter怎么用?C# Critter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Critter类属于FOnline.Server命名空间,在下文中一共展示了Critter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:7,代码来源:Main.cs


示例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;
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:11,代码来源:Item.Events.cs


示例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;
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:11,代码来源:Item.Events.cs


示例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);
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:15,代码来源:NpcPlanes.cs


示例5: RaiseOutCritter

 // called by engine
 void RaiseOutCritter(Critter cr)
 {
     if (OutCritter != null)
         OutCritter(this, new MapInOutCritterEventArgs(this, cr));
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:6,代码来源:Map.Events.cs


示例6: MapTurnBasedProcessEventArgs

 public MapTurnBasedProcessEventArgs(Map map, Critter cr, bool begin_turn)
     : base(map)
 {
     this.Cr = cr;
     this.BeginTurn = begin_turn;
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:6,代码来源:Map.Events.cs


示例7: MapCritterDeadEventArgs

 public MapCritterDeadEventArgs(Map map, Critter cr, Critter killer)
     : base(map)
 {
     this.Cr = cr;
     this.Killer = killer;
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:6,代码来源:Map.Events.cs


示例8: BeginTurnBased

 public virtual void BeginTurnBased(Critter first_turn_crit)
 {
     Map_BeginTurnBased(thisptr, first_turn_crit.ThisPtr);
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:4,代码来源:Map.NativeMethods.cs


示例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);
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:4,代码来源:Map.NativeMethods.cs


示例10: EventOutCritter

 public virtual void EventOutCritter(Critter cr)
 {
     Map_EventOutCritter(thisptr, cr.ThisPtr);
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:4,代码来源:Map.NativeMethods.cs


示例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;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:7,代码来源:Critter.Events.cs


示例12: CritterAttackEventArgs

 public CritterAttackEventArgs(Critter cr, Critter target)
     : base(cr)
 {
     this.Target = target;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:5,代码来源:Critter.Events.cs


示例13: CritterAttackedEventArgs

 public CritterAttackedEventArgs(Critter cr, Critter attacker)
     : base(cr)
 {
     this.Attacker = attacker;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:5,代码来源:Critter.Events.cs


示例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;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:11,代码来源:Critter.Events.cs


示例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;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:7,代码来源:Critter.Events.cs


示例16: CritterGlobalProcessEventArgs

 public CritterGlobalProcessEventArgs(Critter cr, GlobalProcessType type, Item car)
     : base(cr)
 {
     this.Type = type;
     this.Car = car;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:6,代码来源:Critter.Events.cs


示例17: CritterChangeItemOnMapEventArgs

 public CritterChangeItemOnMapEventArgs(Critter cr, Item item)
     : base(cr)
 {
     this.Item = item;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:5,代码来源:Critter.Events.cs


示例18: GetPathLength

 public virtual uint GetPathLength(Critter cr, ushort to_hx, ushort to_hy, uint cut)
 {
     return Map_GetPathLengthCr(thisptr, cr.ThisPtr, to_hx, to_hy, cut);
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:4,代码来源:Map.NativeMethods.cs


示例19: CritterDeadEventArgs

 public CritterDeadEventArgs(Critter cr, Critter killer)
     : base(cr)
 {
     this.Killer = killer;
 }
开发者ID:rotators,项目名称:fosdk,代码行数:5,代码来源:Critter.Events.cs


示例20: VerifyTrigger

 public virtual bool VerifyTrigger(Critter cr, ushort hx, ushort hy, Direction dir)
 {
     return Map_VerifyTrigger(thisptr, cr.ThisPtr, hx, hy, (byte)dir);
 }
开发者ID:SnakeSolidNL,项目名称:fosdk,代码行数:4,代码来源:Map.NativeMethods.cs



注:本文中的FOnline.Server.Critter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# FPCEstimate.FormulaEvaluator类代码示例发布时间:2022-05-24
下一篇:
C# FOnline.Critter类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap