コード例 #1
0
 @Override
 public AbstractMRUAction[] getInteractiveMRUActions() {
   if (!SystemConfiguration.INSTANCE.getBooleanValue(
       SystemConfigurationType.KROSMOZ_GAMES_ENABLE)) {
     return AbstractMRUAction.EMPTY_ARRAY;
   }
   final KrosmozGame game = KrosmozGame.byId(this.m_boardParameters.getGameId());
   if (WakfuGameCalendar.getInstance().getDate().before(game.getUnlockDate())) {
     return AbstractMRUAction.EMPTY_ARRAY;
   }
   final MRUInteractifMachine activateAction = MRUActions.INTERACTIF_ACTION.getMRUAction();
   if (!WakfuSWT.isInit()) {
     activateAction.setEnabled(false);
     activateAction.setErrorMsg(
         WakfuTranslator.getInstance().getString("krosmoz.gameBoard.systemRequirementsNotMet"));
   }
   return new AbstractMRUAction[] {activateAction};
 }
コード例 #2
0
 @Override
 public boolean isUsable() {
   return SystemConfiguration.INSTANCE.getBooleanValue(
           SystemConfigurationType.KROSMOZ_GAMES_ENABLE)
       && super.isUsable();
 }
コード例 #3
0
 public static short getPlayerCharacterLevelCap() {
   final short level =
       (short) SystemConfiguration.INSTANCE.getIntValue(SystemConfigurationType.PLAYER_LEVEL_CAP);
   return (level < 0) ? XpConstants.PLAYER_CHARACTER_LEVEL_CAP : level;
 }