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