Uses of Class
model.map.Cell

Packages that use Cell
Package
Description
All entities in the game: the 4 Player subclasses and Goblin.
Core game control package containing GameManager, ZoneManager, GameState, and GameEventListener.
11x11 map structure comprising MapGrid, Cell, CellType, and MapLoader.
  • Uses of Cell in model.entity

    Methods in model.entity with parameters of type Cell
    Modifier and Type
    Method
    Description
    boolean
    ArcherPlayer.canMoveTo(Cell cell)
    Archer can move through TREE cells but cannot cross ROCK or RIVER cells.
    boolean
    Player.canMoveTo(Cell cell)
    Checks whether this character can move to the given cell.
    boolean
    RebornPlayer.canMoveTo(Cell cell)
    Reborn can walk on RIVER cells but cannot cross ROCK or TREE cells.
  • Uses of Cell in model.game

    Fields in model.game declared as Cell
    Modifier and Type
    Field
    Description
    private Cell
    GameManager.pendingGoblinCell
    The goblin cell currently being fought (used to remove the goblin after the battle).
  • Uses of Cell in model.map

    Fields in model.map declared as Cell
    Modifier and Type
    Field
    Description
    private final Cell[][]
    MapGrid.cells
    2D array holding all cells.
    Methods in model.map that return Cell
    Modifier and Type
    Method
    Description
    MapGrid.getCell(int row, int col)
    Returns the Cell at the specified position.
    Cell[][]
    MapGrid.getCells()
    Returns the full cell array (used by MapLoader to build the map).