|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Location.CompassDirection | |
---|---|
ch.aplu.android | Package of the JDroidLib framework for developing Android applications with a focus on gaming and simulations. |
Uses of Location.CompassDirection in ch.aplu.android |
---|
Fields in ch.aplu.android declared as Location.CompassDirection | |
---|---|
static Location.CompassDirection |
Location.EAST
The compass direction for east. |
static Location.CompassDirection |
Location.NORTH
The compass direction for north. |
static Location.CompassDirection |
Location.NORTHEAST
The compass direction for northeast. |
static Location.CompassDirection |
Location.NORTHWEST
The compass direction for northwest. |
static Location.CompassDirection |
Location.SOUTH
The compass direction for south. |
static Location.CompassDirection |
Location.SOUTHEAST
The compass direction for southeast. |
static Location.CompassDirection |
Location.SOUTHWEST
The compass direction for southwest. |
static Location.CompassDirection |
Location.WEST
The compass direction for west. |
Methods in ch.aplu.android that return Location.CompassDirection | |
---|---|
Location.CompassDirection |
Location.get4CompassDirectionTo(Location location)
Returns the compass direction restricted to 4 sectors from the current location the given location. |
Location.CompassDirection |
Location.getCompassDirectionTo(Location location)
Returns the compass direction restricted to 8 sectors from the current location the given location. |
static Location.CompassDirection |
Location.CompassDirection.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Location.CompassDirection[] |
Location.CompassDirection.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods in ch.aplu.android with parameters of type Location.CompassDirection | |
---|---|
void |
GameGrid.addActor(Actor actor,
Location location,
Location.CompassDirection compassDir)
Same as addActor(Actor actor, Location location, double direction) with compass direction. |
Location |
Location.getAdjacentLocation(Location.CompassDirection compassDir)
Same as getAdjacentLocation(double direction, 5) with given compass direction. |
Location |
Location.getAdjacentLocation(Location.CompassDirection compassDir,
int distance)
Same as getAdjacentLocation(double direction, int distance) with given compass direction. |
Location |
Location.getNeighbourLocation(Location.CompassDirection compassDir)
Gets one of the 8 surrounding cells in the given compass directions. |
void |
Actor.setDirection(Location.CompassDirection compassDir)
Sets the moving direction to the given compass direction. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |