Uses of Enum Class
model.battle.BattleAction
Packages that use BattleAction
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.
All entities in the game: the 4 Player subclasses and Goblin.
Core game control package containing GameManager, ZoneManager, GameState, and GameEventListener.
Core game interfaces: AIControllable, Applicable, and Cooldownable.
-
Uses of BattleAction in application
Methods in application with parameters of type BattleActionModifier and TypeMethodDescriptionprivate voidGameController.submitA(BattleAction action) Submits side A's action to the GameManager. -
Uses of BattleAction in model.battle
Subclasses with type arguments of type BattleAction in model.battleModifier and TypeClassDescriptionenumActions available to players during the battle phase.Fields in model.battle declared as BattleActionModifier and TypeFieldDescriptionprivate final BattleActionActionResult.actionThe chosen action.private BattleActionBattleManager.pendingActionAPending action chosen by side A, awaiting resolution.private BattleActionBattleManager.pendingActionBPending action chosen by side B, awaiting resolution.Methods in model.battle that return BattleActionModifier and TypeMethodDescriptionActionResult.getAction()static BattleActionReturns the enum constant of this class with the specified name.static BattleAction[]BattleAction.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in model.battle with parameters of type BattleActionModifier and TypeMethodDescriptionprivate ActionResultBattleManager.processAction(Entity actor, BattleAction action, Entity target) Processes one entity's action.voidBattleManager.submitActionA(BattleAction action) Side A submits an action for this turn.voidBattleManager.submitActionB(BattleAction action) Side B submits an action for this turn (PvP mode only).Constructors in model.battle with parameters of type BattleActionModifierConstructorDescriptionActionResult(String actorName, BattleAction action) create new ActionResult -
Uses of BattleAction in model.entity
Methods in model.entity that return BattleActionModifier and TypeMethodDescriptionGoblin.decideAction(Entity target) AI decides what to do this turn. -
Uses of BattleAction in model.game
Methods in model.game with parameters of type BattleActionModifier and TypeMethodDescriptionvoidGameManager.submitBattleAction(int playerIndex, BattleAction action) Submits a battle action from a player. -
Uses of BattleAction in model.interfaces
Methods in model.interfaces that return BattleActionModifier and TypeMethodDescriptionAIControllable.decideAction(Entity target) Decides what action to take this turn.