public abstract class Wand extends KindOfWeapon implements UnknownItem
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AC_ZAP |
MAX, MINcursed, 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, speedFactorcast, doDropaffectLevelObjects, 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, visiblyUpgradedpublic 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 KindOfWeaponpublic boolean doUnequip(Hero hero, boolean collect)
doUnequip in class EquipableItempublic void activate(Hero hero)
activate in class KindOfWeaponpublic void execute(Hero hero, java.lang.String action)
execute in class EquipableItempublic void zap(int cell)
public void charge(Char owner)
public void onDetach()
public void stopCharging()
public int effectiveLevel()
public boolean isKnown()
isKnown in interface UnknownItempublic void setKnown()
setKnown in interface UnknownItempublic boolean isIdentified()
isIdentified in class Itempublic void mobWandUse(Char user, int tgt)
public static boolean allKnown()
public void storeInBundle(Bundle bundle)
storeInBundle in interface BundlablestoreInBundle in class Itempublic void restoreFromBundle(Bundle bundle)
restoreFromBundle in interface BundlablerestoreFromBundle in class Itempublic int curCharges()
public void curCharges(int curCharges)
public int maxCharges()
public void maxCharges(int maxCharges)
public boolean affectTarget()