@SuppressWarnings("unchecked") protected void receiveBuildingCollapse(Packet packet) { game.getBoard().collapseBuilding((Vector<Coords>) packet.getObject(0)); }
@SuppressWarnings("unchecked") private void receiveBuildingCollapse(Packet packet) { getGame().getBoard().collapseBuilding((Vector<Coords>) packet.getObject(0)); }
@SuppressWarnings("unchecked") protected void receiveBuildingCollapse(Packet packet) { game.getBoard().collapseBuilding((Vector<Coords>) packet.getObject(0)); // once we've updated the game board with the building collapse, it is time to update // the board edge pathfinder by purging any paths that go through or next to the collapsed hexes for(BoardEdgePathFinder edgePathFinder : deploymentPathFinders.values()) { for(Coords coords : (Vector<Coords>) packet.getObject(0)) { edgePathFinder.invalidatePaths(coords); for(Coords neighbor : coords.allAdjacent()) { edgePathFinder.invalidatePaths(neighbor); } } } }