|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwyvern.kernel.motion.Mover
wyvern.kernel.motion.WaterMover
wyvern.lib.classes.Ship.ShipMover
This class determines where the ship is allowed to move.
| Field Summary |
| Fields inherited from class wyvern.kernel.motion.Mover |
FASTEST_MOVE_SPEED |
| Constructor Summary | |
Ship.ShipMover()
|
|
| Method Summary | |
int |
getSpeed(Commandable m,
Terrain t)
Gets the speed across this Terrain. |
boolean |
terrainCheck(GameObject agent,
Terrain t,
java.util.List objects,
int x,
int y)
Returns true if the ship can move into the specified square. |
| Methods inherited from class wyvern.kernel.motion.WaterMover |
canMove |
| Methods inherited from class wyvern.kernel.motion.Mover |
canWalk, checkAllLocations, checkPreconditions, getInstance, isWater, setNoPassDelay, terrainCheckBlockedBy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Ship.ShipMover()
| Method Detail |
public boolean terrainCheck(GameObject agent,
Terrain t,
java.util.List objects,
int x,
int y)
terrainCheck in class Moveragent - the shipt - the Terrain in questionobjects - the other objects at that location (can be null)x - the x locationy - the y location
public int getSpeed(Commandable m,
Terrain t)
getSpeed in class Moverm - the agent that's trying to movet - the terrain into which the agent is moving
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||