Packages

c

Chess

ChessEngine

class ChessEngine extends GameEngine

Linear Supertypes
GameEngine, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChessEngine
  2. GameEngine
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ChessEngine(players: Array[Player], gameType: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Movement(source: Node): Unit

    Sets the movement on the board if the game doesn't have pieces.

    Sets the movement on the board if the game doesn't have pieces.

    source

    Node that the event will run on it.

    Definition Classes
    GameEngine
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. var blackPromButs: GridPane
    Attributes
    protected
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def executeMove(source: Node, s: State): Unit

    Given a valid move for the current game, it apply the move for the game board and change the image place for the given piece.

    Given a valid move for the current game, it apply the move for the game board and change the image place for the given piece.

    source

    the image of the piece associated with the current move.

    s

    the state of the piece which holds where it was and where it moved to.

  11. var gameBoard: Array[Array[Piece]]
    Definition Classes
    ChessEngineGameEngine
  12. var gameEnded: Boolean
    Definition Classes
    GameEngine
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. def play(): Unit

    Runs the AI agent to play in its turn if there is one in the game.

    Runs the AI agent to play in its turn if there is one in the game.

    Definition Classes
    ChessEngineGameEngine
  20. var score: Array[Int]
    Definition Classes
    ChessEngineGameEngine
  21. def setPlayerMove(source: Node): Unit

    Executes player move.

    Executes player move.

    source

    Node that will change in the GUI.

    Definition Classes
    ChessEngineGameEngine
  22. def setPromButs(buts1: GridPane, buts2: GridPane): Unit

    Take a reference for a given promotion buttons for the white and black king.

    Take a reference for a given promotion buttons for the white and black king.

    buts1

    the buttons for the white king.

    buts2

    the buttons for the black king.

  23. def startGame(gamePane: StackPane): Unit

    Initialize the game with its GUI and logic.

    Initialize the game with its GUI and logic.

    gamePane

    the stack pane that will hold the board in the GUI.

    Definition Classes
    ChessEngineGameEngine
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. var turn: Int
    Definition Classes
    GameEngine
  27. def update(): Unit

    Updates the game loop.

    Updates the game loop.

    Definition Classes
    ChessEngineGameEngine
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. var whitePromButs: GridPane
    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from GameEngine

Inherited from AnyRef

Inherited from Any

Ungrouped