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

How to use
isGameUnderControl
method
in
mage.players.Player

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

origin: magefree/mage

if (player != null && player.isGameUnderControl()) {
origin: magefree/mage

private void perform(UUID playerId, Command command, boolean informOthers) throws MageException {
  if (game.getPlayer(playerId).isGameUnderControl()) { // is the player controlling it's own turn
    if (gameSessions.containsKey(playerId)) {
      setupTimeout(playerId);
      command.execute(playerId);
    }
    if (informOthers) {
      informOthers(playerId);
    }
  } else {
    List<UUID> players = Splitter.split(game, playerId);
    for (UUID uuid : players) {
      if (gameSessions.containsKey(uuid)) {
        setupTimeout(uuid);
        command.execute(uuid);
      }
    }
    if (informOthers) {
      informOthers(players);
    }
  }
}
origin: magefree/mage

this.playersUnderYourControl.clear();
this.playersUnderYourControl.addAll(player.getPlayersUnderYourControl());
this.isGameUnderControl = player.isGameUnderControl();
origin: magefree/mage

this.hasPriority = player.getId().equals(state.getPriorityPlayerId());
this.priorityTimeLeft = player.getPriorityTimeLeft();
this.timerActive = (this.hasPriority && player.isGameUnderControl())
    || (player.getPlayersUnderYourControl().contains(state.getPriorityPlayerId()))
    || player.getId().equals(game.getState().getChoosingPlayerId());
origin: magefree/mage

if (priorityPlayer != null && createdForPlayer != null && createdForPlayerId != null && createdForPlayer.isGameUnderControl()
mage.playersPlayerisGameUnderControl

Javadoc

Returns false in case player don't control the game.

Note: For effects like "You control target player during that player's next turn".

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

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for Android Studio
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