public class NonCombatPetBehavior extends Behavior
Behavior.CommandMessage, Behavior.EventMessage, Behavior.LinkedAggroMessage| Modifier and Type | Field and Description |
|---|---|
protected boolean |
activated |
protected float |
speed |
LINKED_AGGRO_GET, LINKED_AGGRO_RADIUS, LINKED_AGGRO_SEND, LINKED_CHASING_DISTANCE, lock, MSG_TYPE_COMMAND, MSG_TYPE_EVENT, MSG_TYPE_LINKED_AGGRO, objNO_FLAGS, RESPONSE_EXPECTED| Constructor and Description |
|---|
NonCombatPetBehavior() |
NonCombatPetBehavior(SpawnData data) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
float |
getHitBoxRange() |
float |
getMovementSpeed() |
OID |
getOwnerOid() |
void |
handleMessage(Message msg,
int flags)
Handle message.
|
void |
initialize() |
void |
run() |
void |
setHitBoxRange(float radius) |
void |
setMovementSpeed(float speed) |
void |
setOwnerOid(OID ownerOid) |
getObjectStub, SendCommand, SendLinkedAggro, setObjectStubpublic NonCombatPetBehavior()
public NonCombatPetBehavior(SpawnData data)
public void initialize()
initialize in class Behaviorpublic void deactivate()
deactivate in class Behaviorpublic void handleMessage(Message msg, int flags)
MessageCallbackhandleMessage in interface MessageCallbackhandleMessage in class Behaviormsg - Message sent from other agent.flags - Bitwise OR of MessageCallback.NO_FLAGS, MessageCallback.RESPONSE_EXPECTED.public void run()
public void setMovementSpeed(float speed)
public float getMovementSpeed()
public void setHitBoxRange(float radius)
public float getHitBoxRange()
public void setOwnerOid(OID ownerOid)
public OID getOwnerOid()