@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}; }
@Override public boolean isUsable() { return SystemConfiguration.INSTANCE.getBooleanValue( SystemConfigurationType.KROSMOZ_GAMES_ENABLE) && super.isUsable(); }