public abstract class Wand extends KindOfWeapon implements UnknownItem
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AC_ZAP |
MAX, MIN
cursed, cursedKnown, defaultAction, levelKnown, stackable
Constructor and Description |
---|
Wand() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
actions(Hero hero) |
void |
activate(Hero hero) |
boolean |
affectTarget() |
static boolean |
allKnown() |
void |
charge(Char owner) |
boolean |
collect(Bag container) |
int |
curCharges() |
void |
curCharges(int curCharges) |
Item |
degrade() |
boolean |
doUnequip(Hero hero,
boolean collect) |
int |
effectiveLevel() |
void |
execute(Hero hero,
java.lang.String action) |
void |
fromJson(org.json.JSONObject itemDesc) |
Item |
identify() |
java.lang.String |
info() |
static void |
initWoods() |
boolean |
isIdentified() |
boolean |
isKnown() |
int |
maxCharges() |
void |
maxCharges(int maxCharges) |
void |
mobWandUse(Char user,
int tgt) |
java.lang.String |
name() |
void |
onDetach() |
int |
price() |
Item |
random() |
static void |
restore(Bundle bundle) |
void |
restoreFromBundle(Bundle bundle) |
static void |
save(Bundle bundle) |
void |
setKnown() |
java.lang.String |
status() |
void |
stopCharging() |
void |
storeInBundle(Bundle bundle) |
java.lang.String |
toString() |
Item |
upgrade() |
void |
zap(int cell) |
accuracyFactor, damageRoll, doEquip, doUnequip, isEquipped, proc, speedFactor
cast, doDrop
affectLevelObjects, burn, collect, degrade, desc, detach, detachAll, dontPack, doPickUp, doThrow, emitter, emitterInterval, evoke, execute, freeze, glowing, image, imageFile, isFliesFastRotating, isFliesStraight, isUpgradable, level, level, pick, poison, quantity, quantity, removeItemFrom, trueName, updateQuickslot, upgrade, virtual, visiblyUpgraded
public static void initWoods()
public static void save(Bundle bundle)
public static void restore(Bundle bundle)
public java.util.ArrayList<java.lang.String> actions(Hero hero)
actions
in class KindOfWeapon
public boolean doUnequip(Hero hero, boolean collect)
doUnequip
in class EquipableItem
public void activate(Hero hero)
activate
in class KindOfWeapon
public void execute(Hero hero, java.lang.String action)
execute
in class EquipableItem
public void zap(int cell)
public void charge(Char owner)
public void onDetach()
public void stopCharging()
public int effectiveLevel()
public boolean isKnown()
isKnown
in interface UnknownItem
public void setKnown()
setKnown
in interface UnknownItem
public boolean isIdentified()
isIdentified
in class Item
public void mobWandUse(Char user, int tgt)
public static boolean allKnown()
public void storeInBundle(Bundle bundle)
storeInBundle
in interface Bundlable
storeInBundle
in class Item
public void restoreFromBundle(Bundle bundle)
restoreFromBundle
in interface Bundlable
restoreFromBundle
in class Item
public int curCharges()
public void curCharges(int curCharges)
public int maxCharges()
public void maxCharges(int maxCharges)
public boolean affectTarget()