Uses of Enum Class
games.stendhal.common.constants.Nature
Package
Description
entities are all the interactive objects of the gaming world
(including players, NPCs, creatures, items, signs, chests, portals, ...)
common classes for both server and client.
Entities are all the interactive objects of the gaming world
(including players, NPCs, creatures, items, signs, chests, portals, ...)
Events are notifications send from the server to the clients.
-
Uses of Nature in games.stendhal.client.entity
Modifier and TypeMethodDescriptionRPEntity.getShownDamageType()
Get the damage type of the current strike.Modifier and TypeMethodDescriptionvoid
RPEntity.onAttackPerformed(Nature type, boolean ranged, String weapon)
When this entity performs an attack. -
Uses of Nature in games.stendhal.client.gui.j2d.entity.helpers
Modifier and TypeMethodDescriptionstatic AttackPainter
Get a painter for attack of a given nature, and size of a creature.boolean
AttackPainter.hasNatureAndWeapon(Nature nature, String weapon)
Check if this painter has the given nature an weapon. -
Uses of Nature in games.stendhal.common.constants
Modifier and TypeMethodDescriptionstatic Nature
Parses the Nature, defaulting to CUT for unknown types.static Nature
Returns the enum constant of this class with the specified name.static Nature[]
Nature.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Nature in games.stendhal.server.core.rule.defaultruleset
Modifier and TypeMethodDescriptionvoid
DefaultCreature.setDamageTypes(Nature type, Nature rangedType)
Set the damage types.Modifier and TypeMethodDescriptionvoid
DefaultCreature.setSusceptibilities(Map<Nature,Double> susceptibilities)
Set the susceptibility mapping. -
Uses of Nature in games.stendhal.server.entity
Modifier and TypeMethodDescriptionprotected Nature
RPEntity.getDamageType()
Get the type of the damage this entity inflictsprotected Nature
RPEntity.getRangedDamageType()
Get the nature of the damage the entity inflicts in ranged attacks.Modifier and TypeMethodDescriptionint
RPEntity.damageDone(RPEntity defender, double attackingWeaponsValue, Nature damageType)
Is called when this has hit the given defender.protected double
RPEntity.getSusceptibility(Nature type)
Get a multiplier for a given damage type when this entity is damaged. -
Uses of Nature in games.stendhal.server.entity.creature
Modifier and TypeMethodDescriptionprotected Nature
Creature.getDamageType()
protected Nature
Creature.getRangedDamageType()
Modifier and TypeMethodDescriptionprotected double
Creature.getSusceptibility(Nature type)
void
Creature.setDamageTypes(Nature type, Nature rangedType)
Set the damage natures the creature inflicts.Modifier and TypeMethodDescriptionvoid
Creature.setSusceptibilities(Map<Nature,Double> susceptibilities)
Set the susceptibility mapping of a creature. -
Uses of Nature in games.stendhal.server.entity.item
Modifier and TypeMethodDescriptionItem.getDamageType()
Get the type of damage inflicted by this item.Modifier and TypeMethodDescriptiondouble
Item.getSusceptibility(Nature type)
Get this item's contribution to susceptibility to a type of damage.void
Item.setDamageType(Nature type)
Set the type of damage inflicted by this itemModifier and TypeMethodDescriptionvoid
Item.setSusceptibilities(Map<Nature,Double> susceptibilities)
Set the susceptibility data of this item. -
Uses of Nature in games.stendhal.server.entity.player
Modifier and TypeMethodDescriptionint
Player.getMagicSkillXp(Nature nature)
Get the current value for the skill of a magic natureprotected double
Player.getSusceptibility(Nature type)
void
Player.increaseMagicSkillXp(Nature nature, int amount)
Increase the skill points for a magic nature by a given amount -
Uses of Nature in games.stendhal.server.entity.spell
ModifierConstructorDescriptionAttackingSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier)
HealingSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier)
ModifyAtkSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier)
Create a new ModifyAtkSpellModifyDefSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier)
Create a new ModifyDefSpellModifyHpSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier)
Create a new ModifyHpSpellSlowDownSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier)
-
Uses of Nature in games.stendhal.server.entity.spell.effect
ModifierConstructorDescriptionAbstractEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
Create a new AbstractEffect.DamageEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
HealingEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
Creates a newHealingEffect
.ModifyAtkEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
ModifyBaseHpEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
ModifyDefEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
ModifySpeedEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
-
Uses of Nature in games.stendhal.server.events
ModifierConstructorDescriptionAttackEvent(boolean canHit, int damage, Nature type, String weapon, boolean ranged)
Construct a newAttackEvent