public class NonCombatPetBehavior extends Behavior implements MessageCallback
Behavior.CommandMessage, Behavior.EventMessage| Modifier and Type | Field and Description |
|---|---|
protected boolean |
activated |
protected java.lang.Integer |
speed |
lock, MSG_TYPE_COMMAND, MSG_TYPE_EVENT, objNO_FLAGS, RESPONSE_EXPECTED| Constructor and Description |
|---|
NonCombatPetBehavior() |
NonCombatPetBehavior(SpawnData data) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
float |
getHitBoxRange() |
int |
getMovementSpeed() |
OID |
getOwnerOid() |
void |
handleMessage(Message msg,
int flags)
Handle message.
|
void |
initialize() |
void |
run() |
void |
setHitBoxRange(float radius) |
void |
setMovementSpeed(int speed) |
void |
setOwnerOid(OID ownerOid) |
dispatchMessage, getObjectStub, 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(int speed)
public int getMovementSpeed()
public void setHitBoxRange(float radius)
public float getHitBoxRange()
public void setOwnerOid(OID ownerOid)
public OID getOwnerOid()