Class DefaultCreature

java.lang.Object
games.stendhal.server.core.rule.defaultruleset.DefaultCreature

public class DefaultCreature extends Object
  • Constructor Details

  • Method Details

    • setDescription

      public void setDescription(String text)
    • getDescription

      public String 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

      public void setNoiseLines(LinkedHashMap<String,​LinkedList<String>> creatureSays)
    • getNoiseLines

      public HashMap<String,​LinkedList<String>> getNoiseLines()
    • setEquipedItems

      public void setEquipedItems(List<EquipItem> equipsItems)
    • getEquipedItems

      public List<EquipItem> getEquipedItems()
    • setBlood

      public void setBlood(String name)
    • setCorpse

      public void setCorpse(String name, String harmless, int width, int height)
    • setDropItems

      public void setDropItems(List<DropItem> dropsItems)
    • getDropItems

      public List<DropItem> getDropItems()
    • setAIProfiles

      public void setAIProfiles(Map<String,​String> aiProfiles)
    • setSusceptibilities

      public void setSusceptibilities(Map<Nature,​Double> susceptibilities)
      Set the susceptibility mapping.
      Parameters:
      susceptibilities - creature susceptibilities
    • setDamageTypes

      public void setDamageTypes(Nature type, Nature rangedType)
      Set the damage types.
      Parameters:
      type -
      rangedType - if null, then melee type is used for both attack modes
    • getCreature

      public Creature getCreature()
      Returns:
      a creature-instance.
    • getTileId

      public String getTileId()
      Returns:
      the tileid.
    • setTileId

      public void setTileId(String val)
    • getCreatureClass

      public String getCreatureClass()
      Returns:
      the class.
    • getCreatureSubclass

      public String getCreatureSubclass()
    • getCreatureName

      public String getCreatureName()
    • setCreatureClass

      public void setCreatureClass(String val)
    • setCreatureSubclass

      public void setCreatureSubclass(String val)
    • setCreatureName

      public void setCreatureName(String val)
    • setCreatureSounds

      public void setCreatureSounds(List<String> sounds)
      Set the possible sound names.
      Parameters:
      sounds - list of sounds
    • setCreatureDeathSound

      public void setCreatureDeathSound(String sound)
      Set the sound played when a creature dies
      Parameters:
      sound - Name of sound
    • setCreatureMovementSound

      public void setCreatureMovementSound(String sound)
      Set a looped sound effect for creature when moving
      Parameters:
      sound - desired sound effect
    • setStatusAttack

      public void setStatusAttack(String name, double probability)
      Parameters:
      name -
      probability -
    • setShadowStyle

      public void setShadowStyle(String style)
      Sets the style of shadow to use for this entity.
      Parameters:
      style - Name of the style.
    • verifyItems

      public boolean verifyItems(EntityManager defaultEntityManager)
    • toXML

      public String toXML()
    • getAIProfiles

      public Map<String,​String> getAIProfiles()