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

How to use
getPlayable
method
in
mage.players.Player

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

origin: magefree/mage

protected void simulateOptions(Game game) {
  List<Ability> playables = game.getPlayer(playerId).getPlayable(game, isSimulatedPlayer);
  playables = filterAbilities(game, playables, suggested);
  for (Ability ability : playables) {
    if (ability.getAbilityType() == AbilityType.MANA) {
      continue;
    }
    List<Ability> options = game.getPlayer(playerId).getPlayableOptions(ability, game);
    options = filterOptions(game, options, ability, suggested);
    options = optimizeOptions(game, options, ability);
    if (options.isEmpty()) {
      allActions.add(ability);
    } else {
      for (Ability option : options) {
        allActions.add(option);
      }
    }
  }
}
origin: magefree/mage

protected void simulateOptions(Game game, Ability previousActions) {
  allActions.add(previousActions);
  List<Ability> playables = game.getPlayer(playerId).getPlayable(game, isSimulatedPlayer);
  for (Ability ability: playables) {
    List<Ability> options = game.getPlayer(playerId).getPlayableOptions(ability, game);
mage.playersPlayergetPlayable

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

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top PhpStorm plugins
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