Codota Logo
GameLog.getPlayerRequestColoredText
Code IndexAdd Codota to your IDE (free)

How to use
getPlayerRequestColoredText
method
in
mage.util.GameLog

Best Java code snippets using mage.util.GameLog.getPlayerRequestColoredText (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: magefree/mage

@Override
public synchronized void rollbackTurns(int turnsToRollback) {
  if (gameOptions.rollbackTurnsAllowed) {
    int turnToGoTo = getTurnNum() - turnsToRollback;
    if (turnToGoTo < 1 || !gameStatesRollBack.containsKey(turnToGoTo)) {
      informPlayers(GameLog.getPlayerRequestColoredText("Player request: It's not possible to rollback " + turnsToRollback + " turn(s)"));
    } else {
      GameState restore = gameStatesRollBack.get(turnToGoTo);
      if (restore != null) {
        informPlayers(GameLog.getPlayerRequestColoredText("Player request: Rolling back to start of turn " + restore.getTurnNum()));
        state.restoreForRollBack(restore);
        playerList.setCurrent(state.getPlayerByOrderId());
        // Reset temporary created bookmarks because no longer valid after rollback
        savedStates.clear();
        gameStates.clear();
        // because restore uses the objects without copy each copy the state again
        gameStatesRollBack.put(getTurnNum(), state.copy());
        executingRollback = true;
        for (Player playerObject : getPlayers().values()) {
          if (playerObject.isHuman() && playerObject.isInGame()) {
            playerObject.resetStoredBookmark(this);
            playerObject.abort();
            playerObject.resetPlayerPassedActions();
          }
        }
        fireUpdatePlayersEvent();
      }
    }
  }
}
mage.utilGameLoggetPlayerRequestColoredText

Popular methods of GameLog

  • getColoredObjectIdNameForTooltip
  • getColoredObjectName
  • getColorName
  • getColoredObjectIdName
  • getColoredPlayerName
  • getNeutralColoredText
  • getPlayerConfirmColoredText
  • getSmallSecondLineText
  • getTooltipColorName
  • replaceNameByColoredName

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Menu (java.awt)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now