|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.game.inventory.ItemEffects
org.starhope.appius.game.inventory.effects.SimpleAbstractWeapon
public class SimpleAbstractWeapon
WRITEME: Document this type.
Field Summary | |
---|---|
protected int |
ammunition
WRITEME: Document this brpocock@star-hope.org |
protected DamageTypeRanks |
attackDamage
WRITEME: Document this brpocock@star-hope.org |
protected String |
avatarUseAction
WRITEME: Document this brpocock@star-hope.org |
protected AvatarClass |
hitAvatar
WRITEME: Document this brpocock@star-hope.org |
protected DamageHitHandler |
hitHandler
WRITEME: Document this brpocock@star-hope.org |
protected long |
lastUsed
WRITEME: Document this brpocock@star-hope.org |
protected boolean |
limitedAmmunition
WRITEME: Document this brpocock@star-hope.org |
protected int |
maxAmmunition
WRITEME: Document this brpocock@star-hope.org |
protected AvatarClass |
missAvatar
WRITEME: Document this brpocock@star-hope.org |
protected DamageMissHandler |
missHandler
WRITEME: Document this brpocock@star-hope.org |
protected int |
repeatRateMillis
WRITEME: Document this brpocock@star-hope.org |
protected long |
useDelayMillis
WRITEME: Document this brpocock@star-hope.org |
Fields inherited from class org.starhope.appius.game.inventory.ItemEffects |
---|
item |
Constructor Summary | |
---|---|
SimpleAbstractWeapon(InventoryItem theItem)
|
Method Summary | |
---|---|
protected boolean |
checkAmmunition()
WRITEME: Document this method brpocock@star-hope.org |
protected boolean |
checkRepeatRate()
WRITEME: Document this method brpocock@star-hope.org |
protected void |
decreaseAmmunition()
Decrement the ammunition count by 1 |
int |
getAmmunition()
|
String |
getAvatarUseAction()
|
AvatarClass |
getHitAvatar()
|
DamageHitHandler |
getHitHandler()
|
int |
getMaxAmmunition()
|
AvatarClass |
getMissAvatar()
|
DamageMissHandler |
getMissHandler()
|
boolean |
isLimitedAmmunition()
|
protected void |
onAmmoCountChanged()
Whenever a shot is fired, or the weapon is reloaded, this hook is called to give subclasses an opportunity to save the changed value, usually as the item's health value. |
void |
setAmmunition(int newAmmunition)
|
void |
setAvatarUseAction(String newAvatarActionOnUse)
|
void |
setHitAvatar(AvatarClass newHitAvatar)
|
void |
setHitHandler(DamageHitHandler newHitHandler)
|
void |
setLimitedAmmunition(boolean newLimitedAmmunition)
|
void |
setMaxAmmunition(int newMaxAmmunition)
|
void |
setMissAvatar(AvatarClass newMissAvatar)
|
void |
setMissHandler(DamageMissHandler newMissHandler)
|
void |
setRepeatRateMillis(int newRepeatRateMillis)
|
Methods inherited from class org.starhope.appius.game.inventory.ItemEffects |
---|
alter, canSwim, conflicts, considerAsVehicle, forItem, getDefenseGeometric, getDefenseLinear, getItem, isFloatingVehicle, isMountedAnimal, isWheeledVehicle, notifyEquipment, onDeEquip, onEquip, takeDamage, use |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DamageTypeRanks attackDamage
protected int ammunition
protected String avatarUseAction
protected AvatarClass hitAvatar
protected DamageHitHandler hitHandler
protected long lastUsed
protected boolean limitedAmmunition
protected int maxAmmunition
protected AvatarClass missAvatar
protected DamageMissHandler missHandler
protected int repeatRateMillis
protected long useDelayMillis
Constructor Detail |
---|
public SimpleAbstractWeapon(InventoryItem theItem)
theItem
- the item being used as a weaponMethod Detail |
---|
protected boolean checkAmmunition()
protected boolean checkRepeatRate()
protected void decreaseAmmunition()
public int getAmmunition()
public String getAvatarUseAction()
public AvatarClass getHitAvatar()
public DamageHitHandler getHitHandler()
public int getMaxAmmunition()
public AvatarClass getMissAvatar()
public DamageMissHandler getMissHandler()
public boolean isLimitedAmmunition()
protected void onAmmoCountChanged()
public void setAmmunition(int newAmmunition)
newAmmunition
- the ammunition to setpublic void setAvatarUseAction(String newAvatarActionOnUse)
newAvatarActionOnUse
- the avatar action to play during Use
of this item (e.g. “SwordSwing” or “DigShovel” or
“MagicCast2” or something)public void setHitAvatar(AvatarClass newHitAvatar)
newHitAvatar
- the hitAvatar to setpublic void setHitHandler(DamageHitHandler newHitHandler)
newHitHandler
- the hitHandler to setpublic void setLimitedAmmunition(boolean newLimitedAmmunition)
newLimitedAmmunition
- the limitedAmmunition to setpublic void setMaxAmmunition(int newMaxAmmunition)
newMaxAmmunition
- the maxAmmunition to setpublic void setMissAvatar(AvatarClass newMissAvatar)
newMissAvatar
- the missAvatar to setpublic void setMissHandler(DamageMissHandler newMissHandler)
newMissHandler
- the missHandler to setpublic void setRepeatRateMillis(int newRepeatRateMillis)
newRepeatRateMillis
- the repeatRateMillis to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |