atavism.agis.behaviors
Class CombatPetBehavior
java.lang.Object
atavism.server.engine.Behavior
atavism.agis.behaviors.CombatPetBehavior
- All Implemented Interfaces:
- MessageCallback, MessageDispatch, java.io.Serializable, java.lang.Runnable
public class CombatPetBehavior
- extends Behavior
- implements MessageCallback, java.lang.Runnable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
speed
protected java.lang.Integer speed
reactionRadius
protected java.lang.Integer reactionRadius
centerLoc
protected Point centerLoc
currentTarget
protected OID currentTarget
activated
protected boolean activated
CombatPetBehavior
public CombatPetBehavior()
CombatPetBehavior
public CombatPetBehavior(SpawnData data)
initialize
public void initialize()
- Overrides:
initialize
in class Behavior
activate
public void activate()
- Specified by:
activate
in class Behavior
deactivate
public void deactivate()
- Specified by:
deactivate
in class Behavior
handleMessage
public void handleMessage(Message msg,
int flags)
- Description copied from interface:
MessageCallback
- Handle message.
- Specified by:
handleMessage
in interface MessageCallback
- Specified by:
handleMessage
in class Behavior
- Parameters:
msg
- Message sent from other agent.flags
- Bitwise OR of MessageCallback.NO_FLAGS
, MessageCallback.RESPONSE_EXPECTED
.
attackTarget
protected void attackTarget(OID targetOid)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
setMovementSpeed
public void setMovementSpeed(int speed)
getMovementSpeed
public int getMovementSpeed()
setReactionRadius
public void setReactionRadius(int radius)
getReactionRadius
public int getReactionRadius()
setCenterLoc
public void setCenterLoc(Point loc)
getCenterLoc
public Point getCenterLoc()
setchaseDistance
public void setchaseDistance(int distance)
getchaseDistance
public int getchaseDistance()
setHitBoxRange
public void setHitBoxRange(float radius)
getHitBoxRange
public float getHitBoxRange()
setOwnerOid
public void setOwnerOid(OID ownerOid)
getOwnerOid
public OID getOwnerOid()