Uses of Class
model.map.MapGrid
Packages that use MapGrid
Package
Description
JavaFX UI layer — all Scene screens and the GameController connecting the View to the Model.
Core game control package containing GameManager, ZoneManager, GameState, and GameEventListener.
11x11 map structure comprising MapGrid, Cell, CellType, and MapLoader.
-
Uses of MapGrid in application
Methods in application with parameters of type MapGridModifier and TypeMethodDescriptionvoidBoardScene.refreshMapFromModel(MapGrid map) Re-renders the entire map from the model, used when the map changes.private voidBoardScene.renderFromModel(MapGrid map) Re-renders the entire map from the given model, used when the map changes (item pickup, zone shrink).Constructors in application with parameters of type MapGrid -
Uses of MapGrid in model.game
Fields in model.game declared as MapGridMethods in model.game that return MapGridMethods in model.game with parameters of type MapGridModifier and TypeMethodDescriptionbooleanZoneManager.applyZoneDamage(Player p1, Player p2, MapGrid map) Applies zone damage to any player standing on lava.private voidZoneManager.convertNewlyExposedCellsToLava(MapGrid map) Converts all cells outside the safe zone to lava and removes any items or goblins on those cells.booleanZoneManager.onRoundEnd(int round, MapGrid map) Called at the end of every round to check whether the zone should shrink. -
Uses of MapGrid in model.map
Modifier and TypeMethodDescriptionprivate static MapGridMapLoader.buildMap(int[][] data) Builds a MapGrid from a raw int[][] data array, placing random items (HealItem, BuffItem, or DefenseItem) and Goblins in the designated cells.static MapGridMapLoader.loadMap(int index) Loads the map at the specified index, intended for testing.static MapGridMapLoader.loadRandomMap()Randomly loads one of the 10 maps, ensuring no repetition until all maps have been used.