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