@Override
 public boolean onMessage(final SimpleOccupationModificationMessage msg) {
   FightActionGroupManager.getInstance()
       .addActionToPendingGroup(
           (Fight) this.m_concernedFight, new SimpleOccupationModificationAction(msg));
   FightActionGroupManager.getInstance().executePendingGroup(this.m_concernedFight);
   return false;
 }
コード例 #2
0
 @Override
 public boolean onMessage(final FighterPositionMessage msg) {
   final SetPositionAction action =
       new SetPositionAction(
           TimedAction.getNextUid(),
           FightActionType.SET_POSITION.getId(),
           0,
           msg.getFightId(),
           msg.getFighterId(),
           msg.getPosition());
   FightActionGroupManager.getInstance().addActionToPendingGroup(msg.getFightId(), action);
   FightActionGroupManager.getInstance().executePendingGroup(msg.getFightId());
   return false;
 }