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

How to use
getSmallSecondLineText
method
in
mage.util.GameLog

Best Java code snippets using mage.util.GameLog.getSmallSecondLineText (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

protected boolean passWithManaPoolCheck(Game game) {
  if (userData.confirmEmptyManaPool()
      && game.getStack().isEmpty() && getManaPool().count() > 0) {
    String activePlayerText;
    if (game.isActivePlayer(playerId)) {
      activePlayerText = "Your turn";
    } else {
      activePlayerText = game.getPlayer(game.getActivePlayerId()).getName() + "'s turn";
    }
    String priorityPlayerText = "";
    if (!isGameUnderControl()) {
      priorityPlayerText = " / priority " + game.getPlayer(game.getPriorityPlayerId()).getName();
    }
    if (!chooseUse(Outcome.Detriment, GameLog.getPlayerConfirmColoredText("You still have mana in your mana pool. Pass regardless?")
        + GameLog.getSmallSecondLineText(activePlayerText + " / " + game.getStep().getType().toString() + priorityPlayerText), null, game)) {
      sendPlayerAction(PlayerAction.PASS_PRIORITY_CANCEL_ALL_ACTIONS, game, null);
      return false;
    }
  }
  pass(game);
  return true;
}
mage.utilGameLoggetSmallSecondLineText

Popular methods of GameLog

  • getColoredObjectIdNameForTooltip
  • getColoredObjectName
  • getColorName
  • getColoredObjectIdName
  • getColoredPlayerName
  • getNeutralColoredText
  • getPlayerConfirmColoredText
  • getPlayerRequestColoredText
  • 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