Class DefaultCreature
java.lang.Object
games.stendhal.server.core.rule.defaultruleset.DefaultCreature
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getAtk()
int
getDef()
double
int
getHP()
int
getLevel()
int
getRatk()
int
double
getSpeed()
double
getWidth()
int
getXP()
void
setAIProfiles(Map<String,String> aiProfiles)
void
void
void
setCreatureClass(String val)
void
setCreatureDeathSound(String sound)
Set the sound played when a creature diesvoid
setCreatureMovementSound(String sound)
Set a looped sound effect for creature when movingvoid
setCreatureName(String val)
void
setCreatureSounds(List<String> sounds)
Set the possible sound names.void
setCreatureSubclass(String val)
void
setDamageTypes(Nature type, Nature rangedType)
Set the damage types.void
setDescription(String text)
void
setDropItems(List<DropItem> dropsItems)
void
setEquipedItems(List<EquipItem> equipsItems)
void
setLevel(int level, int xp)
void
setNoiseLines(LinkedHashMap<String,LinkedList<String>> creatureSays)
void
setRespawnTime(int respawn)
void
setRPStats(int hp, int atk, int ratk, int def, double speed)
void
setShadowStyle(String style)
Sets the style of shadow to use for this entity.void
setSize(int width, int height)
void
setStatusAttack(String name, double probability)
void
setSusceptibilities(Map<Nature,Double> susceptibilities)
Set the susceptibility mapping.void
toXML()
boolean
verifyItems(EntityManager defaultEntityManager)
-
Constructor Details
-
DefaultCreature
-
-
Method Details
-
setDescription
-
getDescription
-
setRPStats
public void setRPStats(int hp, int atk, int ratk, int def, double speed) -
getHP
public int getHP() -
getAtk
public int getAtk() -
getRatk
public int getRatk() -
getDef
public int getDef() -
getSpeed
public double getSpeed() -
setLevel
public void setLevel(int level, int xp) -
setRespawnTime
public void setRespawnTime(int respawn) -
getRespawnTime
public int getRespawnTime() -
getLevel
public int getLevel() -
getXP
public int getXP() -
setSize
public void setSize(int width, int height) -
getWidth
public double getWidth() -
getHeight
public double getHeight() -
setNoiseLines
-
getNoiseLines
-
setEquipedItems
-
getEquipedItems
-
setBlood
-
setCorpse
-
setDropItems
-
getDropItems
-
setAIProfiles
-
setSusceptibilities
Set the susceptibility mapping.- Parameters:
susceptibilities
- creature susceptibilities
-
setDamageTypes
Set the damage types.- Parameters:
type
-rangedType
- ifnull
, then melee type is used for both attack modes
-
getCreature
- Returns:
- a creature-instance.
-
getTileId
- Returns:
- the tileid.
-
setTileId
-
getCreatureClass
- Returns:
- the class.
-
getCreatureSubclass
-
getCreatureName
-
setCreatureClass
-
setCreatureSubclass
-
setCreatureName
-
setCreatureSounds
Set the possible sound names.- Parameters:
sounds
- list of sounds
-
setCreatureDeathSound
Set the sound played when a creature dies- Parameters:
sound
- Name of sound
-
setCreatureMovementSound
Set a looped sound effect for creature when moving- Parameters:
sound
- desired sound effect
-
setStatusAttack
- Parameters:
name
-probability
-
-
setShadowStyle
Sets the style of shadow to use for this entity.- Parameters:
style
- Name of the style.
-
verifyItems
-
toXML
-
getAIProfiles
-