Index
All Classes and Interfaces|All Packages|Constant Field Values
C
- calculateAttack() - Method in class model.entity.AlienPlayer
-
Calculates the Alien's attack value using attackPower directly.
- calculateAttack() - Method in class model.entity.ArcherPlayer
-
Calculates the Archer's attack value using attackPower directly.
- calculateAttack() - Method in class model.entity.Entity
-
Calculates the effective attack value.
- calculateAttack() - Method in class model.entity.Goblin
-
Calculates the Goblin's attack value using attackPower directly.
- calculateAttack() - Method in class model.entity.KnightPlayer
-
Calculates the Knight's attack value using attackPower directly.
- calculateAttack() - Method in class model.entity.RebornPlayer
-
Calculates the Reborn's attack value using attackPower directly.
- canMoveTo(Cell) - Method in class model.entity.ArcherPlayer
-
Archer can move through TREE cells but cannot cross ROCK or RIVER cells.
- canMoveTo(Cell) - Method in class model.entity.Player
-
Checks whether this character can move to the given cell.
- canMoveTo(Cell) - Method in class model.entity.RebornPlayer
-
Reborn can walk on RIVER cells but cannot cross ROCK or TREE cells.
- Cell - Class in model.map
-
Represents a single cell on the 11x11 map, storing its type, item, goblin, and zone state.
- Cell(int, int, CellType) - Constructor for class model.map.Cell
-
Creates a new Cell.
- cells - Variable in class model.map.MapGrid
-
2D array holding all cells.
- CellType - Enum Class in model.map
-
Types of cells on the 11x11 map.
- CellType() - Constructor for enum class model.map.CellType
- CHAR_SPACING - Variable in class application.CharacterSelectScene
-
Spacing between characters.
- CHAR_WIDTH - Variable in class application.CharacterSelectScene
-
Width of each character image.
- CHARACTER_SELECT - Enum constant in enum class model.game.GameState
-
Character selection screen.
- characterClasses - Variable in class application.CharacterSelectScene
-
Class names for all 4 characters.
- characterImageViews - Variable in class application.CharacterSelectScene
-
ImageViews for all 4 character images.
- characterInfos - Variable in class application.CharacterSelectScene
-
Stat descriptions for each character shown in the info box.
- CharacterSelectScene - Class in application
-
Character selection screen for both players.
- CharacterSelectScene() - Constructor for class application.CharacterSelectScene
-
Creates the character selection screen with all UI components and sets up keyboard/mouse listeners.
- CharacterType - Enum Class in model.entity
-
Enum of selectable characters that also acts as a factory for the correct Player subclass.
- CharacterType() - Constructor for enum class model.entity.CharacterType
- charImg(String, String) - Method in class application.BattleScene
-
Resolves the resource path for a character sprite based on class name and action.
- checkGameOver() - Method in class model.game.GameManager
-
Checks whether any player has died from zone damage and handles game over if so.
- chestImg - Variable in class application.BoardScene
-
Image for chest (item) tiles.
- classOf(Entity) - Method in class application.GameController
-
Converts an entity to its class name string for sprite loading in the View.
- col - Variable in class model.entity.Player
-
Column position on the map.
- col - Variable in class model.map.Cell
-
Column of this cell.
- confirmP1Btn - Variable in class application.CharacterSelectScene
-
Confirm button for P1.
- confirmP2Btn - Variable in class application.CharacterSelectScene
-
Confirm button for P2.
- convertNewlyExposedCellsToLava(MapGrid) - Method in class model.game.ZoneManager
-
Converts all cells outside the safe zone to lava and removes any items or goblins on those cells.
- COOLDOWN_TURNS - Static variable in class model.skill.Skill
-
Number of turns to wait after using the skill.
- Cooldownable - Interface in model.interfaces
-
Interface for skills that have a cooldown system.
- createActionMenuContainer() - Method in class application.BattleScene
-
Creates the action menu container with all 4 buttons (attack, defend, item, skill).
- createArrowWrapper(String) - Method in class application.CharacterSelectScene
-
Creates an arrow wrapper with a floating animation.
- createBattleLog() - Method in class application.BattleScene
-
Creates the battle log box that displays the result of the latest turn.
- createBottomBar() - Method in class application.BoardScene
-
Creates the bottom bar displaying the current turn and round.
- createBottomButtons() - Method in class application.CharacterSelectScene
-
Creates the bottom Confirm button section; initially shows P1's button and switches to P2's after P1 confirms.
- createCenterBattle() - Method in class application.BattleScene
-
Creates the center pane containing sprites for both fighters facing each other.
- createCenterCharacters() - Method in class application.CharacterSelectScene
-
Creates the center section displaying all 4 character images, selection arrows, and the stat info box.
- createFighterProfile(String, String, double, double, int, int, boolean) - Method in class application.BattleScene
-
Creates a profile card for one fighter in the top panel.
- createImageButton(String) - Method in class application.CharacterSelectScene
-
Creates an image-based button with a hover effect.
- createImageButton(String) - Method in class application.GameOverScene
-
Creates an image-based button with a hover effect.
- createImgBtn(String) - Method in class application.BattleScene
-
Creates an image-based button with a hover effect.
- createInventoryPanel(String, String, String[]) - Method in class application.BoardScene
-
Creates an inventory panel for one player showing slots up to maxInventorySize.
- createPlayer() - Method in enum class model.entity.CharacterType
-
Creates the Player subclass corresponding to this CharacterType.
- createPlayerResult(String, String, String, boolean, boolean) - Method in class application.GameOverScene
-
Creates a result box for one player (name + sprite + Victory/Defeat banner).
- createProfile(String, String, double, double, int, int, boolean) - Method in class application.BoardScene
-
Creates a profile card for one player (avatar + name + HP bar + stats).
- createTopChoose() - Method in class application.CharacterSelectScene
-
Creates the top header section showing the "Choose your character" image.
- createTopPanel() - Method in class application.BattleScene
-
Creates the top panel showing HP bars and stats for both fighters.
- createTopPanel(String, String, double, double, int, int, String, String, double, double, int, int) - Method in class application.BoardScene
-
Creates the top panel showing HP bars and stats for both players.
- currentHp - Variable in class model.entity.Entity
-
Current HP.
- currentRadius - Variable in class model.game.ZoneManager
-
Current radius of the safe zone (starts at 5, i.e.
All Classes and Interfaces|All Packages|Constant Field Values