object Connect4Drawer extends Drawer
- Alphabetic
- By Inheritance
- Connect4Drawer
- 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
- 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
- Connect4Drawer → Drawer
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- var gameBoard: GridPane
- Definition Classes
- Connect4Drawer → Drawer
- var gamePane: StackPane
- Definition Classes
- Connect4Drawer → Drawer
- 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
- 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
- Connect4Drawer → Drawer
- 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 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
- Connect4Drawer → Drawer
- def setGamePane(newGamePane: StackPane): Unit
Sets the game pane.
- 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