|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwyvern.kernel.properties.PList
wyvern.kernel.maps.MapObject
wyvern.kernel.commands.AbstractCommandable
wyvern.lib.classes.Vehicle
wyvern.lib.classes.Ship
A player-pilotable Ship.
| Nested Class Summary | |
class |
Ship.ShipMover
This class determines where the ship is allowed to move. |
| Field Summary | |
static int |
DEFAULT_SHIP_SPEED
|
| Fields inherited from class wyvern.kernel.commands.AbstractCommandable |
hookList_, queue_, started_ |
| Fields inherited from class wyvern.kernel.maps.MapObject |
IN_MAP_EDITOR, listenerList_ |
| Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
| Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
| Fields inherited from interface wyvern.common.net.RemoteAudio |
DEFAULT_ALERT_GAIN, DEFAULT_ALERT_REPEAT_DELAY, DEFAULT_ALERT_REPEATS, DEFAULT_GAIN, DEFAULT_REPEAT_DELAY, DEFAULT_REPEATS |
| Constructor Summary | |
Ship()
|
|
| Method Summary | |
protected boolean |
adjacentToShip(Point dest,
java.util.List locs)
Checks whether the proposed point is adjacent to the ship |
boolean |
boardPassenger(Commandable agent)
Puts a passenger in the vehicle, if there's room. |
boolean |
disembark(Commandable agent)
Disembarks the player. |
boolean |
execute(CommandEvent event)
Executes a user command. |
void |
handleMouse(CommandEvent ev)
Handles mouse clicks while player is in the vehicle. |
void |
initialize()
Adds class-default properties. |
boolean |
isDocked()
Returns true if the ship is docked. |
boolean |
knowsCommand(java.lang.String command)
Returns true if we know the command. |
protected void |
printHelp(Commandable agent)
Shows the user the basic commands. |
void |
printWelcome(Commandable agent)
Prints an introductory message. |
protected void |
setDockBitmap()
Sets the bitmap, depending on whether we're docked or not. |
void |
setDocked(boolean docked)
Sets whether the ship is docked or not. |
void |
unhookPlayer(Commandable agent)
Removes hooks from the player. |
| Methods inherited from class wyvern.lib.classes.Vehicle |
addCamera, addHooks, addPilot, adjacentTo, apply, createCommandList, createEvent, createInteriorMap, ensureAI, findDisembarkLocation, getCameraPos, getCommand, getInteriorMap, grabCamera, handleExit, handleFailedPostMove, handleLookXY, handlePilot, handlePreMove, handleTeleport, handleView, hookEvent, isPilot, isValidDir, methodCalled, relinquishCamera, remove, removeCamera, removeHooks, removePilot, setMap, teleport, toggleView, translateToThisMap, updateMapLocation, viewingInside |
| Methods inherited from class wyvern.kernel.commands.AbstractCommandable |
addAttack, addHook, addMessageListener, addMethodHook, checkAnimated, command, command, commandNow, destroy, ensureEventQueue, fireMessageReceived, getAI, getCapName, getCombatQueue, getEncumbrance, getFiringPoint, getHookList, getHooks, getInventory, getName, getQueue, isCommandable, isStarted, isTelnet, message, message, message, pauseSound, playAlert, playAlert, playDefaultMusic, playPriorityMusic, playPriorityMusic, playSound, playSound, registerCommand, removeAttack, removeHook, removeMessageListener, removeMethodHook, resumeSound, runFailedPostHook, runMethodHook, runPostHook, runPreHook, sendPicture, sendPicture, setAI, setEncumbrance, setMusicGain, setName, setSoundGain, start, stop, stopAllSounds, stopMusic, stopSound, unregisterCommand |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface wyvern.lib.Broadcaster |
broadcast, broadcast, broadcast, broadcast, broadcast |
| Field Detail |
public static final int DEFAULT_SHIP_SPEED
| Constructor Detail |
public Ship()
| Method Detail |
public void initialize()
Notes:
initialize in interface GameObjectinitialize in class Vehicleprotected void setDockBitmap()
public void printWelcome(Commandable agent)
printWelcome in class Vehicleprotected void printHelp(Commandable agent)
public boolean isDocked()
public void setDocked(boolean docked)
public boolean boardPassenger(Commandable agent)
boardPassenger in class Vehicleagent - the passenger to board
public boolean disembark(Commandable agent)
disembark in class Vehicleagent - the agent to remove
public void unhookPlayer(Commandable agent)
unhookPlayer in class Vehicleagent - the person leaving the vehiclepublic boolean knowsCommand(java.lang.String command)
knowsCommand in interface CommandknowsCommand in class Vehiclecommand - the entire command string, including arguments
public boolean execute(CommandEvent event)
execute in interface Commandexecute in class Vehicleevent - the command event with the command and agent
public void handleMouse(CommandEvent ev)
handleMouse in class Vehicle
protected boolean adjacentToShip(Point dest,
java.util.List locs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||