Packages

o

Chess

ChessDrawer

object ChessDrawer extends Drawer

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

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. var attackNodes: FilteredList[Node]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. 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
  8. def drawEnd(turn: Int): Unit

    Draws how the game has ended if it ended.

    Draws how the game has ended if it ended.

    turn

    identifies who will play.

    Definition Classes
    Drawer
  9. def drawInit(): Unit

    Draws the board and anything the game needs.

    Draws the board and anything the game needs.

    Definition Classes
    ChessDrawerDrawer
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. var gameBoard: GridPane
    Definition Classes
    ChessDrawerDrawer
  13. var gamePane: StackPane
    Definition Classes
    ChessDrawerDrawer
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def hideAvailableMovements(): Unit
  17. 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.

  18. 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.

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. 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
    ChessDrawerDrawer
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. var normalNodes: FilteredList[Node]
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. var oldState: State
  26. 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.

  27. var promotionMap: Array[Map[Pair[Int, Int], Promotion]]
  28. 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
    ChessDrawerDrawer
  29. def setGamePane(newGamePane: StackPane): Unit

    Sets the game pane.

    Sets the game pane.

    newGamePane

    stack pane that will hold the game pane.

    Definition Classes
    Drawer
  30. 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.

  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from Drawer

Inherited from AnyRef

Inherited from Any

Ungrouped