|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrle.simple.util.MovementUtil
public class MovementUtil
Utilities for movement.
| Constructor Summary | |
|---|---|
MovementUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
canMoveOffset(Creature c,
RLPoint off)
Returns whether the given creature can shift position by a given offset without leaving the board, hitting another creature, or hitting unwalkable terrain. |
static boolean |
creatureAdjacentTo(Creature c,
RLPoint loc)
Returns whether the Creature c, of arbitrary size, is within one location of the RLPoint loc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MovementUtil()
| Method Detail |
|---|
public static boolean canMoveOffset(Creature c,
RLPoint off)
public static boolean creatureAdjacentTo(Creature c,
RLPoint loc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||