Gui

view.gui.Gui
class Gui(val controller: Controller) extends JFXApp3, Observer

Attributes

Graph
Supertypes
trait Observer
trait JFXApp3
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def attack(card: Card): Boolean
def buttonStyle: String
def continue(): Unit
def createBoxForAttackingButtons(name: String, own: List[SelectableCard], used: List[SelectableCard], undefended: List[SelectableCard], defended: List[SelectableCard], canceled: () => Unit, chosen: Card => Boolean, errorLabel: Label): HBox
def createBoxForAttackingCards(turn: Turn, defended: List[SelectableCard], undefended: List[SelectableCard], used: List[SelectableCard]): HBox
def createBoxForDefenderButtons(name: String, own: List[SelectableCard], used: List[SelectableCard], undefended: List[SelectableCard], defended: List[SelectableCard], canceled: () => Unit, chosen: (Card, Card) => Boolean, errorLabel: Label): HBox
def createBoxForPlayerCards(turn: Turn, name: String, own: List[SelectableCard], selectable: Boolean): VBox
def createButtons(turn: Turn, name: String, own: List[SelectableCard], used: List[SelectableCard], undefended: List[SelectableCard], defended: List[SelectableCard], canceled: () => Unit, chosen: Card => Boolean, errorLabel: Label): HBox
def createCardsHBox(cards: List[SelectableCard], selectable: Boolean): HBox
def createLabeledCardsVBox(label: String, cards: List[SelectableCard], show: Boolean, selectable: Boolean): VBox
def createNameTextFields(amount: Int, attackingComboBox: ComboBox[String], namesVBox: VBox): List[TextField]
def createToolBar: ToolBar
def defend(used: Card, undefended: Card): Boolean
def deny(): Unit
def getInfoVBox(trump: Card, stack: List[Card], players: List[Player]): VBox
def initialize(): Unit
def pickUp(): Unit
def showGameOverScene(): Unit
override def start(): Unit

The main application method. Executed on JavaFX Application thread.

The main application method. Executed on JavaFX Application thread.

Attributes

Definition Classes
JFXApp3
override def update(): Unit

Will be called when an observable notifies its observers.

Will be called when an observable notifies its observers.

Attributes

Definition Classes
def updateAttackingComboBox(attackingComboBox: ComboBox[String], nameTextFields: List[TextField]): Unit

Inherited methods

def hostServices: HostServices

Attributes

Inherited from:
JFXApp3
def main(args: Array[String]): Unit

Perform app-related initialization, and execute initialization/construction code for all classes and objects that extend this trait.

Perform app-related initialization, and execute initialization/construction code for all classes and objects that extend this trait.

Value parameters

args

Command line arguments.

Attributes

Note

You are strongly advised not to override this function.

Inherited from:
JFXApp3
def stopApp(): Unit

This method is called when the application should stop, and provides a convenient place to prepare for application exit and destroy resources.

This method is called when the application should stop, and provides a convenient place to prepare for application exit and destroy resources.

It is called from javafx.Application.stop method. The implementation of this method provided by the JFXApp3 class does nothing.

NOTE: This method is called on the JavaFX Application Thread, the same as javafx.Application.stop method.

Attributes

Inherited from:
JFXApp3

Concrete fields

Inherited fields

var stage: PrimaryStage

JFXApp3 stage must be an instance of scalafx.application.JFXApp3.PrimaryStage to ensure that it actually is a proper wrapper for the primary stage supplied by JavaFX.

JFXApp3 stage must be an instance of scalafx.application.JFXApp3.PrimaryStage to ensure that it actually is a proper wrapper for the primary stage supplied by JavaFX.

Attributes

Inherited from:
JFXApp3