|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.kernel.maps.MapObject wyvern.kernel.commands.AbstractCommandable wyvern.kernel.monsters.MonsterImpl wyvern.lib.classes.PirateShip
This class represents a ship. Ships have enough special code that they deserve their own class. Of course none of it is written yet.
Nested Class Summary |
Nested classes inherited from class wyvern.kernel.monsters.MonsterImpl |
MonsterImpl.WalkVisitor |
Field Summary | |
protected int |
direction_
|
protected int |
maxMoves_
|
protected int |
moves_
|
Fields inherited from class wyvern.kernel.monsters.MonsterImpl |
beats_, python_, walkVisitor_ |
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.Monster |
DEFAULT_MONSTER_ATTACK_SPEED, DEFAULT_MONSTER_SPEED, DEFAULT_MONSTER_STRENGTH, MONSTER_XP_CAP |
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 | |
PirateShip()
|
Method Summary | |
int |
getDirection()
Returns the direction this object is facing. |
int |
getMaxMoves()
|
int |
getMoves()
|
void |
initialize()
Sets class-default properties, after loading from the archetype. |
void |
setDirection(int dir)
Sets the current direction this ship is traveling. |
void |
setMaxMoves(int max)
Sets the maximum moves the ship will travel before turning. |
void |
setMoves(int moves)
Sets the current number of moves that the ship |
void |
turn(int dir)
Turns the ship in a new patrolling direction. |
Methods inherited from class wyvern.kernel.monsters.MonsterImpl |
addCustomAttacks, addToMap, adjustHP, adjustSP, adjustStat, adjustWallet, burial, checkDirection, createGenericAttacks, createInventory, dropAll, dropAllForce, ensureAI, ensurePartsList, generateInventory, getDamagedDescription, getHP, getInventory, getLevel, getMaxHP, getMaxSP, getPartsList, getSP, getSpellList, getWallet, getXPAward, heartbeat, initInventory, isAlive, isAttackable, isHostile, isMonster, isMonsterOrPlayer, isNeutral, isPeaceful, isPlayer, kill, message, message, methodCalled, mouseClicked, notifyAttacked, remove, setDefaultAttackSpeed, setHP, setLevelProperties, setMap, setSP, snuffActiveSpells, start, stop |
Methods inherited from class wyvern.kernel.commands.AbstractCommandable |
addAttack, addHook, addMessageListener, addMethodHook, checkAnimated, command, command, commandNow, destroy, ensureEventQueue, fireMessageReceived, getAI, getCapName, getCombatQueue, getCommand, getEncumbrance, getFiringPoint, getHookList, getHooks, getName, getQueue, isCommandable, isStarted, isTelnet, 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, 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.Commandable |
addAttack, addMessageListener, command, command, commandNow, getAI, getCapName, getCombatQueue, getCommand, getEncumbrance, getFiringPoint, getName, getQueue, isStarted, isTelnet, message, registerCommand, removeAttack, removeMessageListener, sendPicture, sendPicture, setAI, setEncumbrance, setName, unregisterCommand |
Methods inherited from interface wyvern.lib.Hookable |
addHook, getHookList, getHooks, removeHook, runFailedPostHook, runPostHook, runPreHook |
Methods inherited from interface wyvern.lib.MethodHookable |
addMethodHook, removeMethodHook, runMethodHook |
Methods inherited from interface wyvern.lib.Broadcaster |
broadcast, broadcast, broadcast, broadcast, broadcast |
Methods inherited from interface wyvern.common.net.RemoteAudio |
pauseSound, playAlert, playAlert, playDefaultMusic, playPriorityMusic, playPriorityMusic, playSound, playSound, resumeSound, setMusicGain, setSoundGain, stopAllSounds, stopMusic, stopSound |
Field Detail |
protected int direction_
protected int moves_
protected int maxMoves_
Constructor Detail |
public PirateShip()
Method Detail |
public void initialize()
MonsterImpl
initialize
in interface GameObject
initialize
in class MonsterImpl
public int getMoves()
public int getMaxMoves()
public int getDirection()
GameObject
getDirection
in interface GameObject
getDirection
in class MapObject
public void setDirection(int dir)
setDirection
in interface GameObject
setDirection
in class MapObject
public void setMaxMoves(int max)
public void setMoves(int moves)
public void turn(int dir)
dir
- a wyvern.lib.Direction constant (N, S, E, W)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |