| Package | Description |
|---|---|
| de.gsi.chart.renderer.spi.hexagon |
| Modifier and Type | Field and Description |
|---|---|
Hexagon |
Hexagon.aStarCameFrom |
| Modifier and Type | Method and Description |
|---|---|
Hexagon |
HexagonMap.addHexagon(Hexagon hexagon)
Add a Hexagon to the HexagonMap
|
Hexagon |
HexagonMap.getHexagon(GridPosition position) |
Hexagon |
HexagonMap.getHexagon(int q,
int r)
Retrieves the Hexagon at the specified position (axial coordinates)
|
Hexagon |
HexagonMap.getHexagonByCube(int x,
int y,
int z) |
Hexagon |
HexagonMap.getHexagonContainingPixel(int x,
int y) |
Hexagon |
Hexagon.getNeighbour(HexagonMap.Direction direction)
Finds the neighbour of this Hexagon
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Hexagon> |
HexagonMap.getAllHexagons() |
List<Hexagon> |
Hexagon.getHexagonsInRingArea(int radius)
Returns all Hexagons that are located within a certain distance from here
|
List<Hexagon> |
Hexagon.getHexagonsOnRingEdge(int radius)
Returns all Hexagons that are located a certain distance from here
|
List<Hexagon> |
Hexagon.getLine(Hexagon origin,
Hexagon destination)
Finds all Hexagons that are on a line between this and destination
|
List<Hexagon> |
Hexagon.getNeighbours()
Finds all neighbours of this Hexagon
|
List<Hexagon> |
Hexagon.getPathTo(Hexagon destination)
Finds the cheapest path from here to the destination.
|
List<Hexagon> |
Hexagon.getPathTo(Hexagon destination,
IPathInfoSupplier pathInfoSupplier)
Finds the cheapest path from start to the goal.
|
List<Hexagon> |
Hexagon.getVisibleHexes(int visibleRange)
Calculates all Hexagons that are visible from this Hexagon.
|
| Modifier and Type | Method and Description |
|---|---|
Hexagon |
HexagonMap.addHexagon(Hexagon hexagon)
Add a Hexagon to the HexagonMap
|
HexagonMap.Direction |
Hexagon.getDirectionTo(Hexagon target)
Finds the direction (NORTHWEST, NORTHEAST, EAST, SOUTHEAST, SOUTHWEST or WEST) If target is a neighbour, then it
is quite simple.
|
int |
Hexagon.getDistance(Hexagon target)
Calculates the distance (number of hexagons) to the target hexagon
|
List<Hexagon> |
Hexagon.getLine(Hexagon origin,
Hexagon destination)
Finds all Hexagons that are on a line between this and destination
|
int |
IPathInfoSupplier.getMovementCost(Hexagon from,
Hexagon to) |
List<Hexagon> |
Hexagon.getPathTo(Hexagon destination)
Finds the cheapest path from here to the destination.
|
List<Hexagon> |
Hexagon.getPathTo(Hexagon destination,
IPathInfoSupplier pathInfoSupplier)
Finds the cheapest path from start to the goal.
|
void |
HexagonCallback.handle(Hexagon hexagon) |
boolean |
IPathInfoSupplier.isBlockingPath(Hexagon hexagon) |
void |
HexagonMap.removeHexagon(Hexagon hexagon)
Removes a Hexagon from the HexagonMap
|
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.