Tabnine Logo
Player.hasTimerTimeout
Code IndexAdd Tabnine to your IDE (free)

How to use
hasTimerTimeout
method
in
mage.players.Player

Best Java code snippets using mage.players.Player.hasTimerTimeout (Showing top 6 results out of 315)

origin: magefree/mage

private static String getMatchResultString(TournamentPlayer p1, TournamentPlayer p2, Match match) {
  MatchPlayer mp1 = match.getPlayer(p1.getPlayer().getId());
  MatchPlayer mp2 = match.getPlayer(p2.getPlayer().getId());
  StringBuilder matchResult = new StringBuilder();
  matchResult.append(p2.getPlayer().getName());
  matchResult.append(" [").append(mp1.getWins());
  if (mp1.hasQuit()) {
    matchResult.append(mp1.getPlayer().hasIdleTimeout() ? "I" : (mp1.getPlayer().hasTimerTimeout() ? "T" : "Q"));
  }
  if (match.getDraws() > 0) {
    matchResult.append('-').append(match.getDraws());
  }
  matchResult.append('-').append(mp2.getWins());
  if (mp2.hasQuit()) {
    matchResult.append(mp2.getPlayer().hasIdleTimeout() ? "I" : (mp2.getPlayer().hasTimerTimeout() ? "T" : "Q"));
  }
  matchResult.append("] ");
  return matchResult.toString();
}
origin: magefree/mage

sb1.append(matchPlayer.getName());
if(matchPlayer.hasQuit()) {
  if (matchPlayer.getPlayer().hasTimerTimeout()) {
    sb1.append(" [timer] ");
  } else if (matchPlayer.getPlayer().hasIdleTimeout()) {
origin: magefree/mage

  matchWinner = matchPlayer;
if (matchPlayer.getPlayer().hasTimerTimeout()) {
  if (matchPlayer.getPlayer().equals(you)) {
    additonalText.append("You run out of time. ");
origin: magefree/mage

sb.append(player.hasQuit() ? "Q" : "");
sb.append(player.hasIdleTimeout() ? "I" : "");
sb.append(player.hasTimerTimeout() ? "T" : "");
sb.append(']');
count++;
origin: magefree/mage

private MatchPlayerProto matchToProto(Match match, TournamentPlayer player) {
  MatchPlayer matchPlayer = match.getPlayer(player.getPlayer().getId());
  MatchQuitStatus quit = !matchPlayer.hasQuit() ? MatchQuitStatus.NO_MATCH_QUIT
      : matchPlayer.getPlayer().hasIdleTimeout() ? MatchQuitStatus.IDLE_TIMEOUT
      : matchPlayer.getPlayer().hasTimerTimeout() ? MatchQuitStatus.TIMER_TIMEOUT
      : MatchQuitStatus.QUIT;
  return MatchPlayerProto.newBuilder()
      .setName(player.getPlayer().getName())
      .setHuman(player.getPlayer().isHuman())
      .setWins(matchPlayer.getWins())
      .setQuit(quit)
      .build();
}
origin: magefree/mage

@Override
public MatchProto toProto() {
  MatchProto.Builder builder = MatchProto.newBuilder()
      .setName(this.getName())
      .setGameType(this.getOptions().getGameType())
      .setDeckType(this.getOptions().getDeckType())
      .setGames(this.getNumGames())
      .setDraws(this.getDraws())
      .setMatchOptions(this.getOptions().toProto())
      .setEndTimeMs((this.getEndTime() != null ? this.getEndTime() : new Date()).getTime());
  for (MatchPlayer matchPlayer : this.getPlayers()) {
    MatchQuitStatus status = !matchPlayer.hasQuit() ? MatchQuitStatus.NO_MATCH_QUIT
        : matchPlayer.getPlayer().hasTimerTimeout() ? MatchQuitStatus.TIMER_TIMEOUT
        : matchPlayer.getPlayer().hasIdleTimeout() ? MatchQuitStatus.IDLE_TIMEOUT
        : MatchQuitStatus.QUIT;
    builder.addPlayersBuilder()
        .setName(matchPlayer.getName())
        .setHuman(matchPlayer.getPlayer().isHuman())
        .setQuit(status)
        .setWins(matchPlayer.getWins());
  }
  return builder.build();
}
mage.playersPlayerhasTimerTimeout

Popular methods of Player

  • getId
  • getHand
  • getName
  • getLife
  • getLibrary
  • hasLeft
  • hasWon
  • getCounters
  • hasLost
  • copy
  • damage
  • declareAttacker
  • damage,
  • declareAttacker,
  • getGraveyard,
  • getPlayersUnderYourControl,
  • activateAbility,
  • canLose,
  • choose,
  • declareBlocker,
  • gainLife,
  • getAttachments

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now