object BattleController extends Initializable with ViewController
Controller for the Battle GUI.
- Alphabetic
- By Inheritance
- BattleController
- ViewController
- Initializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- var actButton: Button
- var activeCharacter: Character
- var activeImage: ImageView
- var activeLabel: Label
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val controller: ViewController
-
def
displayMoveEffect(characterUser: Character, moveName: String, moveTargets: Set[Character], actSelector: ActSelector): Unit
Displays the move effect showing the player, the move's name and its targets.
Displays the move effect showing the player, the move's name and its targets.
- characterUser
the character using the move
- moveName
the move name
- moveTargets
the targets
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handleActButtonPress(): Unit
Handles the press of the Act button.
Handles the press of the Act button.
- Annotations
- @FXML()
-
def
handleCharacterToTargetPressed(mouseEvent: MouseEvent): Unit
Adds/Removes the pressed character to/from the target's list, and checks if the act button is to be activated.
Adds/Removes the pressed character to/from the target's list, and checks if the act button is to be activated.
- mouseEvent
the click of an character's image
- Annotations
- @FXML()
-
def
handleMoveSelection(): Unit
Checks if the act button is to be activated after the selection of a different move.
Checks if the act button is to be activated after the selection of a different move.
- Annotations
- @FXML()
-
def
handlePassButtonPress(): Unit
Handles the press of the Pass button.
Handles the press of the Pass button.
- Annotations
- @FXML()
-
def
handleToMenuButtonPressed(): Unit
Handles the pression of the victory button, returning the player to the TeamSelection menu.
Handles the pression of the victory button, returning the player to the TeamSelection menu.
- Annotations
- @FXML()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initialize(location: URL, resources: ResourceBundle): Unit
- Definition Classes
- BattleController → Initializable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var moveList: ObservableList[String]
- var moveListView: ListView[String]
- var moveReportListView: ListView[String]
-
def
movesManualPressed(): Unit
Handles the press of the Moves manual button, showing the moves manual GUI.
Handles the press of the Moves manual button, showing the moves manual GUI.
- Annotations
- @FXML()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- var opponentAlterations: VBox
- var opponentChar1Image: ImageView
- var opponentChar2Image: ImageView
- var opponentChar3Image: ImageView
- var opponentChar4Image: ImageView
- var opponentCharNames: VBox
- var opponentCharacterImages: Map[ImageView, Character]
- var opponentHps: VBox
- var opponentIdLabel: Label
- var opponentImages: List[ImageView]
- var opponentMps: VBox
- var passButton: Button
- var playerAlterations: VBox
- var playerChar1Image: ImageView
- var playerChar2Image: ImageView
- var playerChar3Image: ImageView
- var playerChar4Image: ImageView
- var playerCharNames: VBox
- var playerCharacterImages: Map[ImageView, Character]
- var playerHps: VBox
- var playerIdLabel: Label
- var playerImages: List[ImageView]
- var playerMps: VBox
-
def
resetTargets(): Unit
Empties the target list.
-
def
resetTimer(): Unit
Resets the turn timer.
- var roundCounter: Label
-
def
setActiveCharacter(character: Character): Unit
Given the active character from the Battle changes the corresponding label.
Given the active character from the Battle changes the corresponding label.
The label is painted green to symbolize which character has now the turn, if the player owns the character, the GUI will show his move list.
-
def
setBattlefield(): Unit
Setups the GUI for both teams
-
def
settingWinner(winner: String): Unit
Shows the match winner and activates the button to return to the TeamSelection menu.
Shows the match winner and activates the button to return to the TeamSelection menu.
- winner
the winner's name of the match
-
def
setupTeams(team: Set[Character]): Unit
Sets the player's team images and status description labels.
Sets the player's team images and status description labels.
- team
the team to setup
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- var targetImages: ListBuffer[ImageView]
- var targets: ListBuffer[Character]
- var timeSeconds: Int
- val timeline: Timeline
- var timerCounter: Label
- var toMenuButton: Button
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateStatus(): Unit
Updates the status of each character in the battle, showing it's current health and mana values compared with it' maximum and by showing the various alterations that are active.
Updates the status of each character in the battle, showing it's current health and mana values compared with it' maximum and by showing the various alterations that are active.
After that changes the images and labels of dead characters.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- var winnerLabel: Label