public final class Position extends Point<Position>
Modifier and Type | Field and Description |
---|---|
static Position |
Invalid |
static Position |
None |
static Position |
Origin |
static int |
SIZE_IN_PIXELS |
static Position |
Unknown |
Constructor and Description |
---|
Position(int x,
int y) |
Position(Position p) |
Position(TilePosition tp) |
Position(WalkPosition wp) |
Modifier and Type | Method and Description |
---|---|
Position |
add(Position other) |
Position |
divide(int divisor) |
Position |
multiply(int multiplier) |
Position |
subtract(Position other) |
TilePosition |
toTilePosition() |
WalkPosition |
toWalkPosition() |
public static final int SIZE_IN_PIXELS
public static final Position Invalid
public static final Position None
public static final Position Unknown
public static final Position Origin
public Position(int x, int y)
public Position(Position p)
public Position(WalkPosition wp)
public Position(TilePosition tp)
public TilePosition toTilePosition()
public WalkPosition toWalkPosition()
Copyright © 2022. All rights reserved.