Uses of Class
model.battle.BattleResult
Packages that use BattleResult
Package
Description
JavaFX UI layer — all Scene screens and the GameController connecting the View to the Model.
Turn-based battle system supporting Player vs Goblin and Player vs Player modes.
Core game control package containing GameManager, ZoneManager, GameState, and GameEventListener.
-
Uses of BattleResult in application
Methods in application with parameters of type BattleResultModifier and TypeMethodDescriptionvoidGameController.onBattleResult(BattleResult result) Receives the result of each battle turn, plays the appropriate animation, then updates the HP bars after the animation finishes. -
Uses of BattleResult in model.battle
Methods in model.battle that return BattleResultModifier and TypeMethodDescriptionprivate BattleResultBattleManager.getBattleResult(ActionResult resA, ActionResult resB) Evaluates the outcomes of both sides' actions and determines the winner/loser.BattleManager.resolveTurn()Resolves the turn — both sides act simultaneously. -
Uses of BattleResult in model.game
Methods in model.game with parameters of type BattleResultModifier and TypeMethodDescriptionprivate voidGameManager.handleBattleOver(BattleResult result) Handles the outcome after a battle ends: removes the goblin from the map and distributes a tome or triggers game over.voidGameEventListener.onBattleResult(BattleResult result) Notifies the UI of each turn's result so it can update HP bars and messages.