Class DefaultCreature
java.lang.Object
games.stendhal.server.core.rule.defaultruleset.DefaultCreature
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetAtk()intintintgetDef()doubleintgetHP()intgetLevel()intgetRatk()intdoublegetSpeed()doubledoublegetWidth()intgetXP()voidsetAIProfiles(Map<String, String> aiProfiles) voidvoidvoidsetCreatureClass(String val) voidsetCreatureDeathSound(String sound) Set the sound played when a creature diesvoidsetCreatureMovementSound(String sound) Set a looped sound effect for creature when movingvoidsetCreatureName(String val) voidsetCreatureSounds(List<String> sounds) Set the possible sound names.voidvoidsetDamageTypes(Nature type, Nature rangedType) Set the damage types.voidsetDescription(String text) voidsetDropItems(List<DropItem> dropsItems) voidsetEquipedItems(List<EquipItem> equipsItems) voidsetLevel(int level, int xp) voidsetNoiseLines(LinkedHashMap<String, LinkedList<String>> creatureSays) voidsetRespawnTime(int respawn) voidsetRPStats(int hp, int atk, int ratk, int def, double speed) voidsetShadowStyle(String style) Sets the style of shadow to use for this entity.voidsetSize(int width, int height) voidsetStatusAttack(String name, double probability) voidsetSusceptibilities(Map<Nature, Double> susceptibilities) Set the susceptibility mapping.voidtoXML()booleanverifyItems(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
-
getShadowStyle
-
getBloodClass
-
getCorpseName
-
getHarmlessCorpseName
-
getCorpseWidth
public int getCorpseWidth() -
getCorpseHeight
public int getCorpseHeight() -
getDropsItems
-
getEquipsItems
-
getSounds
-
getDeathSound
-
getMovementSound
-
getAiProfiles
-
getSusceptibilities
-
getStatusAttack
-
getStatusAttackProbability
public double getStatusAttackProbability() -
getDamageType
-
getRangedDamageType
-
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
-