c

Connect4

Connect4Engine

class Connect4Engine extends GameEngine

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

Instance Constructors

  1. new Connect4Engine(players: Array[Player], gameType: String)

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. 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
    Connect4EngineGameEngine
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. var gameBoard: Array[Array[Piece]]
    Definition Classes
    Connect4EngineGameEngine
  10. var gameEnded: Boolean
    Definition Classes
    GameEngine
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. 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
    Connect4EngineGameEngine
  18. var score: Array[Int]
    Definition Classes
    Connect4EngineGameEngine
  19. def setPlayerMove(source: Node = null): Unit

    Executes player move.

    Executes player move.

    source

    Node that will change in the GUI.

    Definition Classes
    GameEngine
  20. 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
    Connect4EngineGameEngine
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. var turn: Int
    Definition Classes
    GameEngine
  24. def update(): Unit

    Updates the game loop.

    Updates the game loop.

    Definition Classes
    Connect4EngineGameEngine
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. 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 GameEngine

Inherited from AnyRef

Inherited from Any

Ungrouped