public class NonCombatPet extends Pet implements java.io.Serializable, MessageDispatch
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ScheduledFuture<?> |
scheduledDistanceExecutioner |
protected java.util.concurrent.ScheduledFuture<?> |
scheduledExecutioner |
isSpawned, mobName, mobObj, mobTemplateID, ownerOidsaveTimestamp, staticLock, subObjectNamespacesInt, transientPropertyKeys, typelock, nameNO_FLAGS, RESPONSE_EXPECTED| Constructor and Description |
|---|
NonCombatPet() |
NonCombatPet(int mobTemplateID,
OID mobObj,
boolean isSpawned,
java.lang.Long duration,
OID ownerOid) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate()
Activates the message subscriptions so this pet object can pick up relevant messages.
|
boolean |
deactivate()
Deactivates the message subscriptions so this pet object will no longer pick up any messages.
|
boolean |
despawnPet() |
java.lang.Long |
getDespawnTime() |
void |
handleCommand(java.lang.String command,
OID targetOid)
Processes commands, which will either update the pets attitude, the current command, or activate
an ability that the pet has.
|
void |
handleMessage(Message msg,
int flags)
process network messages
|
protected void |
handleOwnerPropertyUpdate(PropertyMessage propMsg)
Deals with the different property updates that have occurred for the owner of the pet.
|
protected void |
handlePetPropertyUpdate(PropertyMessage propMsg)
Deals with the different property updates that have occurred for the pet.
|
void |
setDespawnTime(java.lang.Long despawnTime) |
void |
summonPet() |
getMobName, getMobObj, getMobTemplateID, getOwnerOid, getSpawned, setMobName, setMobObj, setMobTemplateID, setOwnerOid, setSpawnedaddSubObjectNamespace, equals, equals, getLock, getNamespace, getOid, getPersistenceFlag, getProperty, getSubObjectNamespaces, getSubObjectNamespacesInt, getTransientDataRef, getType, hashCode, hasSubObjectNamespace, isDeleted, registerTransientPropertyKey, removeProperty, removeSubObjectNamespace, setDeleted, setNamespace, setOid, setPersistenceFlag, setProperty, setSubObjectNamespaces, setSubObjectNamespacesInt, setType, toBytes, toString, unregisterTransientPropertyKeygetBooleanProperty, getIntProperty, getLongProperty, getName, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlockprotected java.util.concurrent.ScheduledFuture<?> scheduledExecutioner
protected java.util.concurrent.ScheduledFuture<?> scheduledDistanceExecutioner
public void summonPet()
public boolean despawnPet()
despawnPet in class Petpublic boolean activate()
public boolean deactivate()
public void handleMessage(Message msg, int flags)
handleMessage in interface MessageCallbackmsg - Message sent from other agent.flags - Bitwise OR of MessageCallback.NO_FLAGS, MessageCallback.RESPONSE_EXPECTED.public void handleCommand(java.lang.String command,
OID targetOid)
command - protected void handlePetPropertyUpdate(PropertyMessage propMsg)
propMsg - protected void handleOwnerPropertyUpdate(PropertyMessage propMsg)
propMsg - public java.lang.Long getDespawnTime()
public void setDespawnTime(java.lang.Long despawnTime)