class ChessEngine extends GameEngine
- Alphabetic
- By Inheritance
- ChessEngine
- GameEngine
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- var blackPromButs: GridPane
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- var gameBoard: Array[Array[Piece]]
- Definition Classes
- ChessEngine → GameEngine
- var gameEnded: Boolean
- Definition Classes
- GameEngine
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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
- ChessEngine → GameEngine
- var score: Array[Int]
- Definition Classes
- ChessEngine → GameEngine
- def setPlayerMove(source: Node): Unit
Executes player move.
Executes player move.
- source
Node that will change in the GUI.
- Definition Classes
- ChessEngine → GameEngine
- 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.
- 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
- ChessEngine → GameEngine
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- var turn: Int
- Definition Classes
- GameEngine
- def update(): Unit
Updates the game loop.
Updates the game loop.
- Definition Classes
- ChessEngine → GameEngine
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- var whitePromButs: GridPane
- Attributes
- protected
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated