当前位置: 首页>>代码示例>>C#>>正文


C# Monster.setCommand方法代码示例

本文整理汇总了C#中Monster.setCommand方法的典型用法代码示例。如果您正苦于以下问题:C# Monster.setCommand方法的具体用法?C# Monster.setCommand怎么用?C# Monster.setCommand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Monster的用法示例。


在下文中一共展示了Monster.setCommand方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: setUnequipCommand

 public static void setUnequipCommand(Monster monster, String itemID)
 {
     MonsterCommand newCommand = new MonsterCommand();
     newCommand.commandCode = MonsterCommandCode.UNEQUIP;
     newCommand.counter = MonsterActionManager.getSpeed(monster)/2;
     newCommand.addParameter("itemID", itemID);
     monster.setCommand(newCommand);
 }
开发者ID:seaweedfactory,项目名称:LumberjackRL,代码行数:8,代码来源:MonsterActionManager.cs

示例2: setPickupCommand

 public static void setPickupCommand(Monster monster)
 {
     MonsterCommand newCommand = new MonsterCommand();
     newCommand.commandCode = MonsterCommandCode.PICKUP;
     newCommand.counter = MonsterActionManager.getSpeed(monster)/4;
     monster.setCommand(newCommand);
 }
开发者ID:seaweedfactory,项目名称:LumberjackRL,代码行数:7,代码来源:MonsterActionManager.cs

示例3: setNullCommand

 public static void setNullCommand(Monster monster)
 {
     MonsterCommand newCommand = new MonsterCommand();
     newCommand.commandCode = MonsterCommandCode.NULL;
     newCommand.counter = 1;
     monster.setCommand(newCommand);
 }
开发者ID:seaweedfactory,项目名称:LumberjackRL,代码行数:7,代码来源:MonsterActionManager.cs

示例4: setMoveCommand

 public static void setMoveCommand(Monster monster, Direction direction)
 {
     MonsterCommand newCommand = new MonsterCommand();
     newCommand.commandCode = MonsterCommandCode.MOVE;
     newCommand.counter = MonsterActionManager.getSpeed(monster);
     newCommand.addParameter("direction", EnumUtil.EnumName<Direction>(direction));
     monster.setCommand(newCommand);
 }
开发者ID:seaweedfactory,项目名称:LumberjackRL,代码行数:8,代码来源:MonsterActionManager.cs

示例5: setItemVerbCommand

 public static void setItemVerbCommand(Monster monster, Item item, ItemVerb verb, int x, int y)
 {
     MonsterCommand newCommand = new MonsterCommand();
     newCommand.commandCode = MonsterCommandCode.ITEM_VERB;
     newCommand.counter = MonsterActionManager.getSpeed(monster);
     if(item != null)
     {
         newCommand.addParameter("itemID", item.ID);
     }
     else
     {
         newCommand.addParameter("itemID", "");
     }
     newCommand.addParameter("verb", EnumUtil.EnumName<ItemVerb>(verb));
     newCommand.addParameter("x", x+"");
     newCommand.addParameter("y", y+"");
     monster.setCommand(newCommand);
 }
开发者ID:seaweedfactory,项目名称:LumberjackRL,代码行数:18,代码来源:MonsterActionManager.cs

示例6: setAttackCommand

 public static void setAttackCommand(Monster monster, String monsterID)
 {
     MonsterCommand newCommand = new MonsterCommand();
     newCommand.commandCode = MonsterCommandCode.ATTACK;
     newCommand.counter = MonsterActionManager.getSpeed(monster)/2;
     newCommand.addParameter("monsterID", monsterID);
     monster.setCommand(newCommand);
 }
开发者ID:seaweedfactory,项目名称:LumberjackRL,代码行数:8,代码来源:MonsterActionManager.cs


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