Package games.stendhal.client.entity
Class Creature
java.lang.Object
games.stendhal.client.entity.Entity
games.stendhal.client.entity.ActiveEntity
games.stendhal.client.entity.RPEntity
games.stendhal.client.entity.Creature
- All Implemented Interfaces:
IEntity
,RPObjectChangeListener
- Direct Known Subclasses:
BossCreature
-
Nested Class Summary
Nested classes/interfaces inherited from class games.stendhal.client.entity.RPEntity
RPEntity.Resolution
-
Field Summary
Modifier and TypeFieldDescriptionstatic games.stendhal.client.entity.Property
Debug property.static games.stendhal.client.entity.Property
Metamorphosis property.Fields inherited from class games.stendhal.client.entity.RPEntity
OUTFIT_UNSET, PROP_ADMIN_LEVEL, PROP_ATTACK, PROP_CONFUSED, PROP_EATING, PROP_GHOSTMODE, PROP_GROUP_MEMBERSHIP, PROP_HEALER, PROP_HEAVY, PROP_HP_DISPLAY, PROP_HP_RATIO, PROP_MERCHANT, PROP_OUTFIT, PROP_POISONED, PROP_SHOCK, PROP_TEXT_INDICATORS, PROP_TITLE_TYPE, PROP_ZOMBIE
Fields inherited from class games.stendhal.client.entity.ActiveEntity
PROP_DIRECTION, PROP_SPEED
Fields inherited from class games.stendhal.client.entity.Entity
clazz, inAdd, name, rpObject, title, type, x, y
Fields inherited from interface games.stendhal.client.entity.IEntity
PROP_ANIMATED, PROP_CLASS, PROP_NAME, PROP_POSITION, PROP_SIZE, PROP_STATE, PROP_TITLE, PROP_VISIBILITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
getArea()
Get the area the entity occupies.getDebug()
Get the metamorphosis in effect.void
initialize(RPObject object)
Initialize this entity for an object.protected void
void
onChangedAdded(RPObject object, RPObject changes)
The object added/changed attribute(s).void
onChangedRemoved(RPObject object, RPObject changes)
The object removed attribute(s).protected void
onPosition(double x, double y)
When the entity's position changed.void
Called when entity says something.protected void
playRandomSoundFromCategory(String groupName, String categoryName)
protected void
playRandomSoundFromGroup(String groupName, String categoryName, long waitTimeInMilliSec)
protected void
playSoundFromCategory(String groupName, String categoryName)
protected void
playSoundFromCategory(String groupName, String categoryName, int index)
Methods inherited from class games.stendhal.client.entity.RPEntity
addTextIndicator, castsShadow, getAdminLevel, getAtk, getAtkItem, getAtkXP, getAttackers, getAttackTarget, getBaseHP, getBaseMana, getDef, getDefItem, getDefXP, getExtOutfit, getHpRatio, getMana, getOldOutfitCode, getOutfit, getRatk, getRatkItem, getRatkXP, getResistance, getResolution, getShadowStyle, getShownDamageType, getShownWeapon, getTextIndicators, getTitle, getTitleType, getXP, hasStatus, ignoresCollision, isAttackedBy, isAttacking, isBeingAttacked, isChoking, isConfused, isDefending, isDoingRangedAttack, isEating, isGhostMode, onAttackPerformed, onBlocked, onDamaged, onHealed, onMissed, onPrivateListen, onReachAchievement, release, showHPBar, showTitle, update
Methods inherited from class games.stendhal.client.entity.ActiveEntity
getDirection, isFlying, processPositioning, stopped
Methods inherited from class games.stendhal.client.entity.Entity
addChangeListener, addContentChangeListener, fireChange, getCursor, getEntityClass, getEntitySubclass, getHeight, getID, getName, getObjectID, getPath, getResistance, getRPObject, getSlot, getType, getVisibility, getWidth, getX, getY, isObstacle, isOnGround, isUser, onAdded, onRemoved, onSlotAdded, onSlotChangedAdded, onSlotChangedRemoved, onSlotRemoved, removeChangeListener, removeContentChangeListener, toString
-
Field Details
-
PROP_DEBUG
public static final games.stendhal.client.entity.Property PROP_DEBUGDebug property. -
PROP_METAMORPHOSIS
public static final games.stendhal.client.entity.Property PROP_METAMORPHOSISMetamorphosis property.
-
-
Constructor Details
-
Creature
public Creature()
-
-
Method Details
-
nonCreatureClientAddEventLine
-
getDebug
-
getMetamorphosis
Get the metamorphosis in effect.- Returns:
- The metamorphosis, or
null
.
-
getArea
Get the area the entity occupies. -
initialize
Initialize this entity for an object.- Specified by:
initialize
in interfaceIEntity
- Overrides:
initialize
in classRPEntity
- Parameters:
object
- The object.- See Also:
RPEntity.release()
-
onChangedAdded
The object added/changed attribute(s).- Specified by:
onChangedAdded
in interfaceRPObjectChangeListener
- Overrides:
onChangedAdded
in classRPEntity
- Parameters:
object
- The base object.changes
- The changes.
-
onChangedRemoved
The object removed attribute(s).- Specified by:
onChangedRemoved
in interfaceRPObjectChangeListener
- Overrides:
onChangedRemoved
in classRPEntity
- Parameters:
object
- The base object.changes
- The changes.
-
onTalk
Description copied from class:RPEntity
Called when entity says something. -
addSounds
-
onPosition
protected void onPosition(double x, double y)Description copied from class:Entity
When the entity's position changed.- Overrides:
onPosition
in classEntity
- Parameters:
x
- The new X coordinate.y
- The new Y coordinate.
-
playRandomSoundFromCategory
-
playRandomSoundFromGroup
-
playSoundFromCategory
-
playSoundFromCategory
-