Skip navigation links
A B C D E F G H I N O P R S T V 

A

AbstractSatelliteData - Class in org.codetome.hexameter.core.api
Convenience class implementing SatelliteData.
AbstractSatelliteData() - Constructor for class org.codetome.hexameter.core.api.AbstractSatelliteData
 
AxialCoordinate - Class in org.codetome.hexameter.core.api
Represents an axial coorinate pair.

B

build() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
Builds a HexagonalGrid using the parameters supplied.
buildCalculatorFor(HexagonalGrid) - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder

C

calculateDistanceBetween(Hexagon, Hexagon) - Method in interface org.codetome.hexameter.core.api.HexagonalGridCalculator
Calculates the distance (in hexagons) between two Hexagon objects on the grid.
calculateDistanceBetween(Hexagon, Hexagon) - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridCalculatorImpl
 
calculateMovementRangeFrom(Hexagon, int) - Method in interface org.codetome.hexameter.core.api.HexagonalGridCalculator
Returns all Hexagons which are within distance (inclusive) from the Hexagon.
calculateMovementRangeFrom(Hexagon, int) - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridCalculatorImpl
 
checkParameters(int, int) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.EmptyGridLayoutStrategy
 
checkParameters(int, int) - Method in interface org.codetome.hexameter.core.internal.impl.layoutstrategy.GridLayoutStrategy
Checks whether the supplied parameters are valid for the given strategy.
checkParameters(int, int) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.HexagonalGridLayoutStrategy
 
checkParameters(int, int) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.RectangularGridLayoutStrategy
 
checkParameters(int, int) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.TrapezoidGridLayoutStrategy
 
checkParameters(int, int) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.TriangularGridLayoutStrategy
 
clearSatelliteData() - Method in interface org.codetome.hexameter.core.api.Hexagon
Clears the satellite data of this Hexagon.
clearSatelliteData() - Method in interface org.codetome.hexameter.core.api.HexagonalGrid
Clears all satellite data attached to the Hexagons in this grid.
clearSatelliteData() - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
clearSatelliteData() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
containsAxialCoordinate(AxialCoordinate) - Method in interface org.codetome.hexameter.core.api.HexagonalGrid
Tells whether the given axial coordinate is on the grid or not.
containsAxialCoordinate(AxialCoordinate) - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
convertOffsetCoordinatesToAxialX(int, int, HexagonOrientation) - Static method in class org.codetome.hexameter.core.api.CoordinateConverter
Calculates the axial X coordinate based on an offset coordinate pair.
convertOffsetCoordinatesToAxialZ(int, int, HexagonOrientation) - Static method in class org.codetome.hexameter.core.api.CoordinateConverter
Calculates the axial Z coordinate based on an offset coordinate pair.
CoordinateConverter - Class in org.codetome.hexameter.core.api
Utility class for converting coordinated from the offset system to the axial one (the library uses the latter).
CoordinateConverter() - Constructor for class org.codetome.hexameter.core.api.CoordinateConverter
 

D

distanceFrom(Point) - Method in class org.codetome.hexameter.core.api.Point
Calculates a distance between two points.

E

EmptyGridLayoutStrategy - Class in org.codetome.hexameter.core.internal.impl.layoutstrategy
This strategy is responsible for generating a HexagonalGrid which has a triangular shape.
EmptyGridLayoutStrategy() - Constructor for class org.codetome.hexameter.core.internal.impl.layoutstrategy.EmptyGridLayoutStrategy
 
equals(Object) - Method in class org.codetome.hexameter.core.api.AxialCoordinate
 
equals(Object) - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 

F

fetchGridCoordinates(HexagonalGridBuilder) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.EmptyGridLayoutStrategy
 
fetchGridCoordinates(HexagonalGridBuilder) - Method in interface org.codetome.hexameter.core.internal.impl.layoutstrategy.GridLayoutStrategy
Fetches a monotonically increasing (from left to right, top to bottom) Set of grid coordinates corresponding to the shape of the requested grid layout.
fetchGridCoordinates(HexagonalGridBuilder) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.HexagonalGridLayoutStrategy
 
fetchGridCoordinates(HexagonalGridBuilder) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.RectangularGridLayoutStrategy
 
fetchGridCoordinates(HexagonalGridBuilder) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.TrapezoidGridLayoutStrategy
 
fetchGridCoordinates(HexagonalGridBuilder) - Method in class org.codetome.hexameter.core.internal.impl.layoutstrategy.TriangularGridLayoutStrategy
 
fromCoordinates(int, int) - Static method in class org.codetome.hexameter.core.api.AxialCoordinate
Creates an instance of AxialCoordinate from an x and a z coordinate.
fromKey(String) - Static method in class org.codetome.hexameter.core.api.AxialCoordinate
Tries to create an AxialCoordinate from a key which has the format: %gridX%,%gridZ%.
fromPosition(double, double) - Static method in class org.codetome.hexameter.core.api.Point
Creates a point from coordinateX and coordinateY positions.

G

getAxialCoordinate() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns the AxialCoordinate of this Hexagon.
getAxialCoordinate() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getByAxialCoordinate(AxialCoordinate) - Method in interface org.codetome.hexameter.core.api.HexagonalGrid
Returns a Hexagon by its axial coordinate.
getByAxialCoordinate(AxialCoordinate) - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getByPixelCoordinate(double, double) - Method in interface org.codetome.hexameter.core.api.HexagonalGrid
Returns a Hexagon by a pixel coordinate.
getByPixelCoordinate(double, double) - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getCenterX() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns the center x (pixel) coordinate of this Hexagon.
getCenterX() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getCenterY() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns the center y (pixel) coordinate of this Hexagon.
getCenterY() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getCoordinateOffset() - Method in enum org.codetome.hexameter.core.api.HexagonOrientation
This is because the flat/pointy shape of a hexagon.
getCoordinateX() - Method in class org.codetome.hexameter.core.api.Point
 
getCoordinateY() - Method in class org.codetome.hexameter.core.api.Point
 
getCustomStorage() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
 
getGridHeight() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
 
getGridHeight() - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getGridLayout() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
 
getGridLayout() - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getGridLayoutStrategy() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
 
getGridLayoutStrategy() - Method in enum org.codetome.hexameter.core.api.HexagonalGridLayout
 
getGridWidth() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
 
getGridWidth() - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getGridX() - Method in class org.codetome.hexameter.core.api.AxialCoordinate
 
getGridX() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns this Hexagon's x (axial) coordinate on the HexagonalGrid.
getGridX() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getGridY() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns this Hexagon's y coordinate on the HexagonalGrid.
getGridY() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getGridZ() - Method in class org.codetome.hexameter.core.api.AxialCoordinate
 
getGridZ() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns this Hexagon's z (axial) coordinate on the HexagonalGrid.
getGridZ() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getHeight() - Method in class org.codetome.hexameter.core.internal.SharedHexagonData
 
getHexagons() - Method in interface org.codetome.hexameter.core.api.HexagonalGrid
Returns all Hexagons contained in this grid.
getHexagons() - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getHexagonsByAxialRange(AxialCoordinate, AxialCoordinate) - Method in interface org.codetome.hexameter.core.api.HexagonalGrid
Returns all Hexagons contained in the given axial coordinate range.
getHexagonsByAxialRange(AxialCoordinate, AxialCoordinate) - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getHexagonsByOffsetRange(int, int, int, int) - Method in interface org.codetome.hexameter.core.api.HexagonalGrid
Returns all Hexagons contained in the given offset coordinate range.
getHexagonsByOffsetRange(int, int, int, int) - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getId() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns an unique String representing this Hexagon.
getId() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getMovementCost() - Method in class org.codetome.hexameter.core.api.AbstractSatelliteData
 
getMovementCost() - Method in interface org.codetome.hexameter.core.api.SatelliteData
Returns the movement cost when moving over the Hexagon.
getNeighborsOf(Hexagon) - Method in interface org.codetome.hexameter.core.api.HexagonalGrid
Returns all neighbors of a Hexagon.
getNeighborsOf(Hexagon) - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getOrientation() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
 
getOrientation() - Method in class org.codetome.hexameter.core.internal.SharedHexagonData
 
getPoints() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns a list containing the Points of this Hexagon.
getPoints() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getRadius() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
 
getRadius() - Method in class org.codetome.hexameter.core.internal.SharedHexagonData
 
getSatelliteData() - Method in interface org.codetome.hexameter.core.api.Hexagon
Returns this Hexagon's satellite data.
getSatelliteData() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
getSharedHexagonData() - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
Returns the SharedHexagonData.
getSharedHexagonData() - Method in class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
 
getWidth() - Method in class org.codetome.hexameter.core.internal.SharedHexagonData
 
GridLayoutStrategy - Interface in org.codetome.hexameter.core.internal.impl.layoutstrategy
Represents the method of creating a HexagonalGrid corresponding to a given shape.

H

hashCode() - Method in class org.codetome.hexameter.core.api.AxialCoordinate
 
hashCode() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
Hexagon - Interface in org.codetome.hexameter.core.api
Represents a Hexagon.
HexagonalGrid - Interface in org.codetome.hexameter.core.api
Represents a hexagonal grid.
HexagonalGridBuilder - Class in org.codetome.hexameter.core.api
Builder for a HexagonalGrid.
HexagonalGridBuilder() - Constructor for class org.codetome.hexameter.core.api.HexagonalGridBuilder
 
HexagonalGridCalculator - Interface in org.codetome.hexameter.core.api
Supports advanced operations on a HexagonalGrid.
HexagonalGridCalculatorImpl - Class in org.codetome.hexameter.core.internal.impl
 
HexagonalGridCalculatorImpl(HexagonalGrid) - Constructor for class org.codetome.hexameter.core.internal.impl.HexagonalGridCalculatorImpl
 
HexagonalGridCreationException - Exception in org.codetome.hexameter.core.api.exception
 
HexagonalGridCreationException(String) - Constructor for exception org.codetome.hexameter.core.api.exception.HexagonalGridCreationException
 
HexagonalGridImpl - Class in org.codetome.hexameter.core.internal.impl
 
HexagonalGridImpl(HexagonalGridBuilder) - Constructor for class org.codetome.hexameter.core.internal.impl.HexagonalGridImpl
Creates a new HexagonalGrid based on the provided HexagonalGridBuilder.
HexagonalGridLayout - Enum in org.codetome.hexameter.core.api
This enum represents the possible shapes a HexagonalGrid can have.
HexagonalGridLayoutStrategy - Class in org.codetome.hexameter.core.internal.impl.layoutstrategy
This strategy is responsible for generating a HexagonalGrid which has a hexagonal shape.
HexagonalGridLayoutStrategy() - Constructor for class org.codetome.hexameter.core.internal.impl.layoutstrategy.HexagonalGridLayoutStrategy
 
HexagonImpl - Class in org.codetome.hexameter.core.internal.impl
Default implementation of the Hexagon interface.
HexagonNotFoundException - Exception in org.codetome.hexameter.core.api.exception
 
HexagonNotFoundException(String, Throwable) - Constructor for exception org.codetome.hexameter.core.api.exception.HexagonNotFoundException
 
HexagonNotFoundException(String) - Constructor for exception org.codetome.hexameter.core.api.exception.HexagonNotFoundException
 
HexagonOrientation - Enum in org.codetome.hexameter.core.api
Enum representing the possible orientations of a Hexagon.

I

isPassable() - Method in class org.codetome.hexameter.core.api.AbstractSatelliteData
 
isPassable() - Method in interface org.codetome.hexameter.core.api.SatelliteData
Tells whether the Hexagon can be passed over when moving around the map or not.

N

newHexagon(SharedHexagonData, AxialCoordinate, Map<AxialCoordinate, Object>) - Static method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
Creates a new Hexagon object from shared data and a coordinate.

O

org.codetome.hexameter.core.api - package org.codetome.hexameter.core.api
 
org.codetome.hexameter.core.api.exception - package org.codetome.hexameter.core.api.exception
 
org.codetome.hexameter.core.internal - package org.codetome.hexameter.core.internal
 
org.codetome.hexameter.core.internal.impl - package org.codetome.hexameter.core.internal.impl
 
org.codetome.hexameter.core.internal.impl.layoutstrategy - package org.codetome.hexameter.core.internal.impl.layoutstrategy
 

P

Point - Class in org.codetome.hexameter.core.api
Represents a point.

R

RectangularGridLayoutStrategy - Class in org.codetome.hexameter.core.internal.impl.layoutstrategy
This strategy is responsible for generating a HexagonalGrid which has a rectangular shape.
RectangularGridLayoutStrategy() - Constructor for class org.codetome.hexameter.core.internal.impl.layoutstrategy.RectangularGridLayoutStrategy
 

S

SatelliteData - Interface in org.codetome.hexameter.core.api
Represents arbitrary data which can be attached to a Hexagon.
setGridHeight(int) - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
Mandatory parameter.
setGridLayout(HexagonalGridLayout) - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
Sets the HexagonalGridLayout which will be used when creating the HexagonalGrid.
setGridWidth(int) - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
Mandatory parameter.
setMovementCost(double) - Method in class org.codetome.hexameter.core.api.AbstractSatelliteData
 
setMovementCost(double) - Method in interface org.codetome.hexameter.core.api.SatelliteData
Sets the movement cost.
setOrientation(HexagonOrientation) - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
Sets the HexagonOrientation used in the resulting HexagonalGrid.
setPassable(boolean) - Method in class org.codetome.hexameter.core.api.AbstractSatelliteData
 
setPassable(boolean) - Method in interface org.codetome.hexameter.core.api.SatelliteData
Sets whether the Hexagon is passable or not.
setRadius(double) - Method in class org.codetome.hexameter.core.api.HexagonalGridBuilder
Sets the radius of the Hexagons contained in the resulting HexagonalGrid.
setSatelliteData(T) - Method in interface org.codetome.hexameter.core.api.Hexagon
Can be used to add arbitrary satellite data to a Hexagon.
setSatelliteData(T) - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
SharedHexagonData - Class in org.codetome.hexameter.core.internal
Immutable class which holds the shared data between the Hexagons of a HexagonalGrid.
SharedHexagonData(HexagonOrientation, double) - Constructor for class org.codetome.hexameter.core.internal.SharedHexagonData
Creates a new SharedHexagonData based on orientation and radius.

T

toKey() - Method in class org.codetome.hexameter.core.api.AxialCoordinate
Creates a key which can be used in key-value storage objects based on this AxialCoordinate.
toString() - Method in class org.codetome.hexameter.core.internal.impl.HexagonImpl
 
TrapezoidGridLayoutStrategy - Class in org.codetome.hexameter.core.internal.impl.layoutstrategy
 
TrapezoidGridLayoutStrategy() - Constructor for class org.codetome.hexameter.core.internal.impl.layoutstrategy.TrapezoidGridLayoutStrategy
 
TriangularGridLayoutStrategy - Class in org.codetome.hexameter.core.internal.impl.layoutstrategy
This strategy is responsible for generating a HexagonalGrid which has a triangular shape.
TriangularGridLayoutStrategy() - Constructor for class org.codetome.hexameter.core.internal.impl.layoutstrategy.TriangularGridLayoutStrategy
 

V

valueOf(String) - Static method in enum org.codetome.hexameter.core.api.HexagonalGridLayout
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.codetome.hexameter.core.api.HexagonOrientation
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.codetome.hexameter.core.api.HexagonalGridLayout
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.codetome.hexameter.core.api.HexagonOrientation
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I N O P R S T V 
Skip navigation links

Copyright © 2016. All rights reserved.