|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.motion.Mover wyvern.kernel.motion.WaterMover
This hacky class for the demo keeps the monster in the water. Eventually it should probably be implemented as an property on the Mover object (e.g. Mover.setPassTerrain()) or something).
Field Summary |
Fields inherited from class wyvern.kernel.motion.Mover |
FASTEST_MOVE_SPEED |
Constructor Summary | |
WaterMover()
|
Method Summary | |
boolean |
canMove(GameObject agent,
Terrain t)
Returns true if the monster can move onto the specified terrain at all. |
Methods inherited from class wyvern.kernel.motion.Mover |
canWalk, checkAllLocations, checkPreconditions, getInstance, getSpeed, isWater, setNoPassDelay, terrainCheck, terrainCheckBlockedBy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WaterMover()
Method Detail |
public boolean canMove(GameObject agent, Terrain t)
canMove
in class Mover
agent
- the Monster trying to move theret
- the Terrain to examine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |