object ChessDrawer extends Drawer
- Alphabetic
- By Inheritance
- ChessDrawer
- Drawer
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- var attackNodes: FilteredList[Node]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def drawBoard(rows: Int, cols: Int, color1: Color, color2: Color, showGridLines: Boolean, showMovements: Boolean = false): GridPane
Returns a grid pane that holds the board in the GUI.
Returns a grid pane that holds the board in the GUI.
- rows
number of rows in the game.
- cols
number of columns in the game.
- color1
the first color of the squares.
- color2
the second color of the squares.
- showGridLines
shows lines between cells if true.
- showMovements
shows available movement if true.
- returns
Grid pane
- Definition Classes
- Drawer
- def drawEnd(turn: Int): Unit
Draws how the game has ended if it ended.
- def drawInit(): Unit
Draws the board and anything the game needs.
Draws the board and anything the game needs.
- Definition Classes
- ChessDrawer → Drawer
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- var gameBoard: GridPane
- Definition Classes
- ChessDrawer → Drawer
- var gamePane: StackPane
- Definition Classes
- ChessDrawer → Drawer
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hideAvailableMovements(): Unit
- def highlight(state: State, visibility: Boolean): Unit
Highlights or turn off the highlights of the specified cells.
Highlights or turn off the highlights of the specified cells.
- state
the old state of the piece and the new state.
- visibility
true if it will highlight, false if it will turn off the highlight.
- def highlightSquares(state: State): Unit
Highlights the last movement in the game (from and to).
Highlights the last movement in the game (from and to).
- state
the old state of the piece and the new state.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def movementDraw(source: Node, state: State, arg: Node): Unit
Draws player's new move.
Draws player's new move.
- source
the node the player clicked on it.
- state
the state the piece will go to it.
- arg
node to be removed if there is eaten pieces.
- Definition Classes
- ChessDrawer → Drawer
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- var normalNodes: FilteredList[Node]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- var oldState: State
- def preparePromotion(player: ChessPlayer): Unit
Updates the game board after the player chooses a piece to promote to.
Updates the game board after the player chooses a piece to promote to.
- player
the current player who plays.
- var promotionMap: Array[Map[Pair[Int, Int], Promotion]]
- def setEvents(Event: (Node) => Unit, board: Array[Array[Piece]], s: Int, e: Int): Unit
Set the events of the pieces to its player.
Set the events of the pieces to its player.
- Event
the type of event to set.
- board
the game board which has been played so far.
- s
start index of player's pieces.
- e
end index of player's pieces.
- Definition Classes
- ChessDrawer → Drawer
- def setGamePane(newGamePane: StackPane): Unit
Sets the game pane.
- def showAvailableMovements(player: ChessPlayer): Unit
Shows all available movements of the current piece.
Shows all available movements of the current piece.
- player
the current player who plays.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated