Uses of Class
model.entity.Player
Packages that use Player
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.
-
Uses of Player in application
Methods in application with parameters of type PlayerModifier and TypeMethodDescriptionprivate String[]Converts a player's inventory to an array of item name strings for display in the View.voidGameController.onGameOver(Player winner) Receives a game-over event, shows the GameOverScene, and binds its buttons.voidGameController.onItemPickedUp(Player player) Receives an item-pickup event and updates the inventory panel and map.voidGameController.onPlayerMoved(Player player, int row, int col) Receives a player-moved event, updates the animation on the BoardScene, and switches the turn.voidGameController.onTomeApplied(Player player, String effectDesc) Receives a tome-applied event after the player defeats a Goblin, updates stats, and shows a notification. -
Uses of Player in model.battle
Methods in model.battle with parameters of type PlayerModifier and TypeMethodDescriptionprivate voidBattleManager.applySkillEffect(Player actor, Skill skill, Entity target, ActionResult res) Applies the skill's effect according to its SkillEffect type. -
Uses of Player in model.entity
Subclasses of Player in model.entityModifier and TypeClassDescriptionclassAlien — a magic-oriented character with very low HP and defense, but attacks bypass defense.classArcher — the highest-attack character, but with relatively low HP and defense.classKnight — the most durable character with high HP and defense.classReborn — a support character with moderate HP and defense but the lowest attack.Methods in model.entity that return PlayerModifier and TypeMethodDescriptionabstract PlayerCharacterType.createPlayer()Creates the Player subclass corresponding to this CharacterType. -
Uses of Player in model.game
Fields in model.game declared as PlayerModifier and TypeFieldDescriptionprivate PlayerGameManager.player1Player 1.private PlayerGameManager.player2Player 2.Methods in model.game that return PlayerMethods in model.game with parameters of type PlayerModifier and TypeMethodDescriptionbooleanZoneManager.applyZoneDamage(Player p1, Player p2, MapGrid map) Applies zone damage to any player standing on lava.voidGameEventListener.onGameOver(Player winner) Notifies when the game ends.voidGameEventListener.onItemPickedUp(Player player) Notifies when a player picks up an item.voidGameEventListener.onPlayerMoved(Player player, int row, int col) Notifies when a player successfully moves.voidGameEventListener.onTomeApplied(Player player, String effectDescription) Notifies when a TomeItem is applied to the winner after defeating a Goblin.