public abstract class Equippable extends Item implements EffectSource
Constructor and Description |
---|
Equippable(java.lang.String id,
int value,
java.lang.String imgName,
org.newdawn.slick.GameContainer gc,
int reqLevel,
Modifiers bonuses,
java.util.List<java.lang.String> equipEffects,
int type,
ItemMaterial material) |
Equippable(java.lang.String id,
long serial,
int value,
java.lang.String imgName,
org.newdawn.slick.GameContainer gc,
int reqLevel,
Modifiers bonuses,
java.util.List<java.lang.String> equipEffects,
int type,
ItemMaterial material) |
Modifier and Type | Method and Description |
---|---|
Effect |
getEffect(java.lang.String effectId)
Return new instance of effect with specified ID from skill effects list
|
java.util.Collection<Effect> |
getEffects()
Returns all effects from this source
|
java.util.List<java.lang.String> |
getEffectsIds()
Returns list with all IDs of effects from this skill
|
Targetable |
getOwner()
Return effect source owner
|
AnimObject |
getSpriteFor(Gender sex)
Returns sprite for specified gender
|
void |
reset()
Resets item to default state
|
int |
type()
Return item type
|
draw, getActionType, getId, getMaxStack, getNumber, getSerialId, getTile, getValue, setOwner, setTile, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getSerialId
public Equippable(java.lang.String id, int value, java.lang.String imgName, org.newdawn.slick.GameContainer gc, int reqLevel, Modifiers bonuses, java.util.List<java.lang.String> equipEffects, int type, ItemMaterial material) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
org.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public Equippable(java.lang.String id, long serial, int value, java.lang.String imgName, org.newdawn.slick.GameContainer gc, int reqLevel, Modifiers bonuses, java.util.List<java.lang.String> equipEffects, int type, ItemMaterial material) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
org.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public int type()
public AnimObject getSpriteFor(Gender sex)
sex
- Game character genderpublic Targetable getOwner()
EffectSource
getOwner
in interface EffectSource
public java.util.Collection<Effect> getEffects()
EffectSource
getEffects
in interface EffectSource
public Effect getEffect(java.lang.String effectId)
EffectSource
getEffect
in interface EffectSource
effectId
- ID of desired effectpublic java.util.List<java.lang.String> getEffectsIds()
EffectSource
getEffectsIds
in interface EffectSource
public void reset()