本文整理汇总了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);
}
示例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);
}
示例3: setNullCommand
public static void setNullCommand(Monster monster)
{
MonsterCommand newCommand = new MonsterCommand();
newCommand.commandCode = MonsterCommandCode.NULL;
newCommand.counter = 1;
monster.setCommand(newCommand);
}
示例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);
}
示例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);
}
示例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);
}