| Package | Description |
|---|---|
| org.codetome.hexameter.core.api | |
| org.codetome.hexameter.core.internal.impl |
| Modifier and Type | Method and Description |
|---|---|
Set<Hexagon<T>> |
HexagonalGridCalculator.calculateMovementRangeFrom(Hexagon<T> hexagon,
int distance)
|
Set<Hexagon<T>> |
HexagonalGridCalculator.calculateRingFrom(Hexagon<T> centerHexagon,
int radius)
|
List<Hexagon<T>> |
HexagonalGridCalculator.drawLine(Hexagon<T> from,
Hexagon<T> to)
|
Optional<Hexagon<T>> |
HexagonalGrid.getByCubeCoordinate(CubeCoordinate coordinate)
Returns a
Hexagon by its cube coordinate. |
Optional<Hexagon<T>> |
HexagonalGrid.getByPixelCoordinate(double coordinateX,
double coordinateY)
Returns a
Hexagon by a pixel coordinate. |
rx.Observable<Hexagon<T>> |
HexagonalGrid.getHexagons()
Returns all
Hexagons contained in this grid. |
rx.Observable<Hexagon<T>> |
HexagonalGrid.getHexagonsByCubeRange(CubeCoordinate from,
CubeCoordinate to)
Returns all
Hexagons contained in the given cube coordinate range. |
rx.Observable<Hexagon<T>> |
HexagonalGrid.getHexagonsByOffsetRange(int gridXFrom,
int gridXTo,
int gridYFrom,
int gridYTo)
Returns all
Hexagons contained in the given offset coordinate range. |
Optional<Hexagon<T>> |
HexagonalGrid.getNeighborByIndex(Hexagon<T> hexagon,
int index)
Returns a neighbor of a Hexagon by its neighbor index.
|
Collection<Hexagon<T>> |
HexagonalGrid.getNeighborsOf(Hexagon<T> hexagon)
Returns all neighbors of a
Hexagon. |
Optional<Hexagon<T>> |
HexagonalGridCalculator.rotateHexagon(Hexagon<T> originalHex,
Hexagon<T> targetHex,
RotationDirection rotationDirection)
Returns the Hexagon on the grid which is at the point resulted by rotating the
targetHex's
coordinates around the originalHex by rotationDirection degrees. |
| Modifier and Type | Method and Description |
|---|---|
int |
HexagonalGridCalculator.calculateDistanceBetween(Hexagon<T> hex0,
Hexagon<T> hex1)
Calculates the distance (in hexagons) between two
Hexagon objects on the grid. |
int |
HexagonalGridCalculator.calculateDistanceBetween(Hexagon<T> hex0,
Hexagon<T> hex1)
Calculates the distance (in hexagons) between two
Hexagon objects on the grid. |
Set<Hexagon<T>> |
HexagonalGridCalculator.calculateMovementRangeFrom(Hexagon<T> hexagon,
int distance)
|
Set<Hexagon<T>> |
HexagonalGridCalculator.calculateRingFrom(Hexagon<T> centerHexagon,
int radius)
|
List<Hexagon<T>> |
HexagonalGridCalculator.drawLine(Hexagon<T> from,
Hexagon<T> to)
|
List<Hexagon<T>> |
HexagonalGridCalculator.drawLine(Hexagon<T> from,
Hexagon<T> to)
|
Optional<Hexagon<T>> |
HexagonalGrid.getNeighborByIndex(Hexagon<T> hexagon,
int index)
Returns a neighbor of a Hexagon by its neighbor index.
|
Collection<Hexagon<T>> |
HexagonalGrid.getNeighborsOf(Hexagon<T> hexagon)
Returns all neighbors of a
Hexagon. |
boolean |
HexagonalGridCalculator.isVisible(Hexagon<T> from,
Hexagon<T> to)
|
boolean |
HexagonalGridCalculator.isVisible(Hexagon<T> from,
Hexagon<T> to)
|
Optional<Hexagon<T>> |
HexagonalGridCalculator.rotateHexagon(Hexagon<T> originalHex,
Hexagon<T> targetHex,
RotationDirection rotationDirection)
Returns the Hexagon on the grid which is at the point resulted by rotating the
targetHex's
coordinates around the originalHex by rotationDirection degrees. |
Optional<Hexagon<T>> |
HexagonalGridCalculator.rotateHexagon(Hexagon<T> originalHex,
Hexagon<T> targetHex,
RotationDirection rotationDirection)
Returns the Hexagon on the grid which is at the point resulted by rotating the
targetHex's
coordinates around the originalHex by rotationDirection degrees. |
| Modifier and Type | Class and Description |
|---|---|
class |
HexagonImpl<T extends SatelliteData>
Default implementation of the
Hexagon interface. |
| Modifier and Type | Method and Description |
|---|---|
Set<Hexagon<T>> |
HexagonalGridCalculatorImpl.calculateMovementRangeFrom(Hexagon<T> hexagon,
int distance) |
Set<Hexagon<T>> |
HexagonalGridCalculatorImpl.calculateRingFrom(Hexagon<T> centerHexagon,
int radius) |
List<Hexagon<T>> |
HexagonalGridCalculatorImpl.drawLine(Hexagon<T> from,
Hexagon<T> to) |
Optional<Hexagon<T>> |
HexagonalGridImpl.getByCubeCoordinate(CubeCoordinate coordinate) |
Optional<Hexagon<T>> |
HexagonalGridImpl.getByPixelCoordinate(double coordinateX,
double coordinateY) |
rx.Observable<Hexagon<T>> |
HexagonalGridImpl.getHexagons() |
rx.Observable<Hexagon<T>> |
HexagonalGridImpl.getHexagonsByCubeRange(CubeCoordinate from,
CubeCoordinate to) |
rx.Observable<Hexagon<T>> |
HexagonalGridImpl.getHexagonsByOffsetRange(int gridXFrom,
int gridXTo,
int gridYFrom,
int gridYTo) |
Optional<Hexagon<T>> |
HexagonalGridImpl.getNeighborByIndex(Hexagon<T> hexagon,
int index) |
Collection<Hexagon<T>> |
HexagonalGridImpl.getNeighborsOf(Hexagon<T> hexagon) |
Optional<Hexagon<T>> |
HexagonalGridCalculatorImpl.rotateHexagon(Hexagon<T> originalHex,
Hexagon<T> targetHex,
RotationDirection rotationDirection) |
| Modifier and Type | Method and Description |
|---|---|
int |
HexagonalGridCalculatorImpl.calculateDistanceBetween(Hexagon hex0,
Hexagon hex1) |
int |
HexagonalGridCalculatorImpl.calculateDistanceBetween(Hexagon hex0,
Hexagon hex1) |
Set<Hexagon<T>> |
HexagonalGridCalculatorImpl.calculateMovementRangeFrom(Hexagon<T> hexagon,
int distance) |
Set<Hexagon<T>> |
HexagonalGridCalculatorImpl.calculateRingFrom(Hexagon<T> centerHexagon,
int radius) |
List<Hexagon<T>> |
HexagonalGridCalculatorImpl.drawLine(Hexagon<T> from,
Hexagon<T> to) |
List<Hexagon<T>> |
HexagonalGridCalculatorImpl.drawLine(Hexagon<T> from,
Hexagon<T> to) |
Optional<Hexagon<T>> |
HexagonalGridImpl.getNeighborByIndex(Hexagon<T> hexagon,
int index) |
Collection<Hexagon<T>> |
HexagonalGridImpl.getNeighborsOf(Hexagon<T> hexagon) |
boolean |
HexagonalGridCalculatorImpl.isVisible(Hexagon<T> from,
Hexagon<T> to) |
boolean |
HexagonalGridCalculatorImpl.isVisible(Hexagon<T> from,
Hexagon<T> to) |
Optional<Hexagon<T>> |
HexagonalGridCalculatorImpl.rotateHexagon(Hexagon<T> originalHex,
Hexagon<T> targetHex,
RotationDirection rotationDirection) |
Optional<Hexagon<T>> |
HexagonalGridCalculatorImpl.rotateHexagon(Hexagon<T> originalHex,
Hexagon<T> targetHex,
RotationDirection rotationDirection) |
Copyright © 2016. All rights reserved.