Class Player

java.lang.Object
com.valhalla.sdk.api.entities.Player
All Implemented Interfaces:
Locatable

public final class Player extends Object implements Locatable
Immutable snapshot of one player from the current native world view.
  • Constructor Details

    • Player

      public Player(int index, String name, Tile tile, boolean moving, boolean local)
    • Player

      public Player(int index, String name, Tile tile, boolean moving, boolean local, List<Tile> walkingQueue)
  • Method Details

    • getIndex

      public int getIndex()
    • getName

      public String getName()
    • hasName

      public boolean hasName()
    • getTile

      public Tile getTile()
      Specified by:
      getTile in interface Locatable
    • isMoving

      public boolean isMoving()
    • isLocal

      public boolean isLocal()
    • getWalkingQueue

      public List<Tile> getWalkingQueue()
    • getWalkingDestination

      public Optional<Tile> getWalkingDestination()
    • getNextStep

      public Optional<Tile> getNextStep()
    • equals

      public boolean equals(Object value)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object