Packages

o

XO

XODrawer

object XODrawer extends Drawer

Linear Supertypes
Drawer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XODrawer
  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. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. 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
  7. 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
  8. def drawInit(): Unit

    Draws the board and anything the game needs.

    Draws the board and anything the game needs.

    Definition Classes
    XODrawerDrawer
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. var gameBoard: GridPane
    Definition Classes
    XODrawerDrawer
  12. var gamePane: StackPane
    Definition Classes
    XODrawerDrawer
  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. 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
    XODrawerDrawer
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. 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
    XODrawerDrawer
  21. 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
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. 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