Affectable, Behavable, CloseableLockable, CMObject, Combatant, Contingent, DBIdentifiable, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rideable, Rider, StatsAffecting, Tickable, AmmunitionWeapon, Container, Item, SiegableItem, Weapon, Wearable, java.lang.Cloneable, java.lang.Comparable<CMObject>GenSiegeWeaponpublic class StdSiegeWeapon extends StdRideable implements AmmunitionWeapon, SiegableItem
Rideable.BasisSiegableItem.SiegeCommandWearable.CODES| Modifier and Type | Field | Description | 
|---|---|---|
| protected int[] | aiming | |
| protected int | ammoCapacity | |
| protected PairList<Item,int[]> | coordinates | |
| protected int | lastSpamCt | |
| protected java.lang.String | lastSpamMsg | |
| protected int | maxRange | |
| protected int | minRange | |
| protected int | nextTacticalMoveDir | |
| protected PairList<MOB,java.lang.Long> | otherUsers | |
| protected Room | siegeCombatRoom | |
| protected SiegableItem | siegeTarget | |
| protected int | ticksFromHappen | |
| protected boolean | useExtendedMissString | |
| protected int | weaponClassification | |
| protected int | weaponDamageType | 
idConverterCONTAIN_ANYTHING, CONTAIN_BODIES, CONTAIN_CAGED, CONTAIN_CLOTHES, CONTAIN_COINS, CONTAIN_DAGGERS, CONTAIN_DESCS, CONTAIN_DRINKABLES, CONTAIN_EATABLES, CONTAIN_FOOTWEAR, CONTAIN_KEYS, CONTAIN_LIQUID, CONTAIN_ONEHANDWEAPONS, CONTAIN_OTHERWEAPONS, CONTAIN_RAWMATERIALS, CONTAIN_READABLES, CONTAIN_SCROLLS, CONTAIN_SHIELDS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDScapacity, containType, defaultsClosed, defaultsLocked, hasALid, hasALock, isLocked, isOpen, openDelayTicks_name, affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValuesdismountString, mountString, putString, rideBasis, riderCapacity, riders, rideString, stateString, stateSubjectStrSTATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESETCLASS_AXE, CLASS_BLUNT, CLASS_DAGGER, CLASS_DESCS, CLASS_EDGED, CLASS_FLAILED, CLASS_HAMMER, CLASS_NATURAL, CLASS_POLEARM, CLASS_RANGED, CLASS_STAFF, CLASS_SWORD, CLASS_THROWN, MASK_MAXRANGEBITS, MASK_MAXRANGEFLAG, MASK_MAXRANGESHFT, MASK_MAXRANGEZERO, MASK_MINRANGEBITS, MASK_MINRANGEFLAG, MASK_MINRANGESHFT, MASK_MINRANGEZERO, MASK_MOAMMOBITS, MASK_MOAMMOFLAG, MASK_MOAMMOSHFT, MASK_MOAMMOZERO, MSG_TYPE_MAP, TYPE_BASHING, TYPE_BURNING, TYPE_BURSTING, TYPE_CORRUPTING, TYPE_DESCS, TYPE_DISRUPTING, TYPE_FROSTING, TYPE_GASSING, TYPE_LASERING, TYPE_MELTING, TYPE_MSG_MAP, TYPE_NATURAL, TYPE_PIERCING, TYPE_SCRAPING, TYPE_SHOOT, TYPE_SLASHING, TYPE_SONICING, TYPE_STRIKING, TYPE_STULTIFYINGDEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD| Constructor | Description | 
|---|---|
| StdSiegeWeapon() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected void | addPlayerAttacker(MOB M) | |
| boolean | amDead() | Returns whether this is sunk or destroyed in a siege.. | 
| protected boolean | amInTacticalMode() | |
| int | ammunitionCapacity() | The current adjected maximum amount of Units of ammunition which can be loaded
 into this weapon. | 
| int | ammunitionRemaining() | The amount of Units of ammunition loaded into this weapon. | 
| java.lang.String | ammunitionType() | The type/class of ammunition required by this weapon. | 
| void | announceToUsers(java.lang.String msgStr) | |
| protected void | clearTacticalMode() | |
| protected void | clearTacticalModeInternal() | |
| void | destroy() | Utterly and permanently destroy this object, not only removing it from the map, but
 causing this object to be collected as garbage by Java. | 
| void | executeMsg(Environmental myHost,
          CMMsg msg) | The general message event handler for the object. | 
| java.lang.String | genericName() | Returns a generic name for this object, devoid of its particular
 identifying details. | 
| PhysicalAgent | getCombatant() | If this mob is in combat, this returns the mob that this mob is
 targeting. | 
| PairList<Item,int[]> | getCombatField() | Returns the combat field, which must be public to allow
 all participants too coordinate. | 
| int | getDirectionToTarget() | Gets the compass direction between this combatant and the current combat
 victim. | 
| protected int | getDirectionToTarget(PhysicalAgent dirTarget) | |
| protected MOB | getFactoryAttacker(Room thisRoom) | |
| protected int[] | getMagicCoords() | |
| int | getMaxHullPoints() | Returns the number of base hull points that the given obj has. | 
| protected java.util.List<MOB> | getPlayerAttackers() | |
| int[] | getRanges() | Gets the raw minimum and maximum range of this weapon. | 
| PairList<Weapon,int[]> | getSiegeWeaponAimings() | Returns the mapping of this objects siege weapons to the coordinates
 they are presently aimed at. | 
| int[] | getTacticalCoords() | Returns the tactical coordinates of this object | 
| protected int | getTacticalDistance(SiegableItem targetI) | |
| java.lang.String | getTacticalView(SiegableItem viewer) | A unique display message for siegable objects and their relationship
 to this object. | 
| java.lang.String | healthText(MOB viewer) | Returns the friendly viewable description of this mobs health status,
 from the given viewer mobs point of view. | 
| java.lang.String | hitString(int damageAmount) | Gets the string that would be shown if someone gets a hit with
 this weapon. | 
| java.lang.String | ID() | The CoffeeMud Java Class ID shared by all instances of
 this object. | 
| protected boolean | isAnyoneAtCoords(int[] xy) | |
| boolean | isFreeStanding() | Returns true if the weapon is a free-standing missile weapon, meaning
 it can be loaded and fired from the ground, like a siege weapon/catapult. | 
| boolean | isInCombat() | Returns whether this combatant is in an active combat state | 
| Item | killMeDead(boolean createBody) | Puts this combatant in a dead state, removes all temporary effects,
 creates a corpse, ends combat, and sends mob players to their graveyard. | 
| void | makePeace(boolean includePlayerFollowers) | Clears the combat state between this combatant and their
 target, clears the targets combat state, as well as
 that of any followers of this combatant. | 
| int | maxRange() | the modified maximum range of this object, if applicable. | 
| boolean | mayIFight(PhysicalAgent victim) | Returns whether this combatant is both permitted to attack the
 given combatant, and that both this combatant and the potential target
 are alive. | 
| boolean | mayPhysicallyAttack(PhysicalAgent victim) | Returns whether this combatant is permitted to attack the
 given combatant, both this combatant and the potential target are alive,
 both the combatant and the target are confirmed to be the same
 place. | 
| int | minRange() | the modified minimum range of this object, if applicable. | 
| java.lang.String | missString() | Gets the string that would be shown if someone misses with
 this weapon. | 
| boolean | okMessage(Environmental myHost,
         CMMsg msg) | The general message event previewer for the object. | 
| int | rangeToTarget() | Gets the distance between this combatant and the current combat
 victim. | 
| int | rawAmmunitionCapacity() | The base unadjusted maximum amount of Units of ammunition which can be loaded
 into this weapon. | 
| void | recoverOwner() | |
| void | recoverPhyStats() | This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to
 all surrounding objects  with affectPhyStats(Environmental,PhyStats) method. | 
| boolean | requiresAmmunition() | Returns true if the weapon requires ammunition, ever. | 
| java.lang.String | secretIdentity() | This method returns the calculated and expanded description of the properties
 of the item as would be discovered through the Identify spell. | 
| void | setAmmoCapacity(int amount) | Sets the maximum amount of Units of ammunition which can be loaded into this weapon. | 
| void | setAmmoRemaining(int amount) | Sets the amount of Units of ammunition loaded into this weapon. | 
| void | setAmmunitionType(java.lang.String ammo) | Sets the type/class of ammunition required by this weapon. | 
| void | setCombatant(PhysicalAgent other) | Sets the mob that this mob is targeting for combat, which
 either puts them into, or clears their combat state. | 
| void | setRanges(int min,
         int max) | Sets the minimum and maximum range of this weapon. | 
| void | setRangeToTarget(int newRange) | Sets the distance between this combatant and the current combat
 victim. | 
| void | setUsesRemaining(int newUses) | Sets the uses remaining field, which is a general numeric value whose meaning differs
 for different Item types. | 
| void | setWeaponClassification(int newClassification) | Sets the general classification of this weapon, denoting how the
 weapon is used and the skills required. | 
| void | setWeaponDamageType(int newType) | Sets the type of damage this weapon does, from the weapon damage
 type list of codes. | 
| protected java.lang.Boolean | startAttack(MOB sourceM,
           Room thisRoom,
           java.lang.String rest) | |
| boolean | subjectToWearAndTear() | Whether the usesRemaining() number above is used to determine the percentage health of
 the item. | 
| boolean | tick(Tickable ticking,
    int tickID) | this is the method which is called periodically by the threading engine. | 
| int | value() | The default value of the item, represented in the base CoffeeMud currency. | 
| int | weaponClassification() | Gets the general classification of this weapon, denoting how the
 weapon is used and the skills required. | 
| int | weaponDamageType() | Gets the type of damage this weapon does, from the weapon damage
 type list of codes. | 
| protected java.lang.String | weaponHealth() | 
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, setBasePhyStatsaddBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptscopyOf, initializeClass, newInstanceamDestroyed, isSavable, setSavablecanSaveDatabaseID, databaseID, setDatabaseIDdescription, displayText, image, isGeneric, L, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, textexpirationDate, setExpirationDatebaseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, stopTicking, ultimateContainer, usesRemaininggetSaveStatIndex, getStat, getStatCodes, isStat, setStatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescription, displayText, nameisReadable, readableText, setReadable, setReadableTextaffectCharState, affectCharStats, affectPhyStatscanContain, capacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, keyName, numberOfItems, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setKeyName, setMiscText, setOpenDelayTicksabilityImbuesMagic, addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, alreadyWornMsg, amBeingWornProperly, amDestroyed, amWearingAt, baseGoldValue, basePhyStats, behaviors, canSaveDatabaseID, canWear, canWearComplete, compareProperLocations, compareTo, container, copyOf, databaseID, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, description, displayText, eachBehavior, eachEffect, eachScript, effects, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fitsOn, getSaveStatIndex, getStat, getStatCodes, getTickStatus, I, image, initializeClass, isGeneric, isReadable, isSavable, isStat, L, material, miscTextFormat, name, name, Name, newInstance, numBehaviors, numEffects, numScripts, owner, phyStats, rawImage, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, readableText, removeFromOwnerContainer, riding, sameAs, scripts, setBasePhyStats, setBaseValue, setContainer, setDatabaseID, setDescription, setDisplayText, setExpirationDate, setImage, setMaterial, setName, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadable, setReadableText, setRiding, setSavable, setSecretIdentity, setStat, stopTicking, tackOns, text, ultimateContainer, unWear, usesRemaining, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearaddRider, affectPhyStats, amRiding, cloneFix, delRider, dismountString, displayText, fetchRider, getDismountString, getMountString, getPutString, getRideBuddies, getRideString, getStateString, getStateStringSubject, isMobileRideBasis, mobileRideBasis, mountString, numRiders, putString, rideBasis, riderCapacity, riders, rideString, savable, setDismountString, setMountString, setPutString, setRideBasis, setRiderCapacity, setRideString, setStateString, setStateStringSubject, stateString, stateStringSubjectgetTickStatus, nameamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearprotected int weaponDamageType
protected int weaponClassification
protected boolean useExtendedMissString
protected int minRange
protected int maxRange
protected int ammoCapacity
protected volatile int nextTacticalMoveDir
protected volatile int lastSpamCt
protected volatile int ticksFromHappen
protected volatile java.lang.String lastSpamMsg
protected SiegableItem siegeTarget
protected Room siegeCombatRoom
protected volatile int[] aiming
public java.lang.String ID()
CMObjectID in interface CMObjectID in class StdRideablepublic java.lang.String genericName()
PhysicalgenericName in interface PhysicalgenericName in class StdRideablepublic int weaponDamageType()
WeaponweaponDamageType in interface WeaponWeapon.TYPE_DESCSpublic int weaponClassification()
WeaponweaponClassification in interface WeaponWeapon.CLASS_DESCSpublic void setWeaponDamageType(int newType)
WeaponsetWeaponDamageType in interface WeaponnewType - get weapon damage type codeWeapon.TYPE_DESCSpublic void setWeaponClassification(int newClassification)
WeaponsetWeaponClassification in interface WeaponnewClassification - the weapon classification codeWeapon.CLASS_DESCSpublic boolean isFreeStanding()
AmmunitionWeaponisFreeStanding in interface AmmunitionWeaponpublic java.lang.String secretIdentity()
ItemsecretIdentity in interface ItemsecretIdentity in class StdItempublic void recoverPhyStats()
AffectablerecoverPhyStats in interface AffectablerecoverPhyStats in class StdRideableAffectable.basePhyStats(), 
Affectable.phyStats(), 
Affectable.addEffect(Ability), 
Behavable.addBehavior(Behavior), 
PhyStatspublic void setRangeToTarget(int newRange)
CombatantsetRangeToTarget in interface CombatantnewRange - the range from this combatant to their targetMOB.getVictim(), 
Combatant.setCombatant(PhysicalAgent), 
Combatant.getCombatant(), 
Combatant.rangeToTarget(), 
Combatant.mayIFight(PhysicalAgent)protected int getDirectionToTarget(PhysicalAgent dirTarget)
public final int getMaxHullPoints()
SiegableItemgetMaxHullPoints in interface SiegableItempublic int rangeToTarget()
CombatantrangeToTarget in interface CombatantMOB.getVictim(), 
Combatant.setCombatant(PhysicalAgent), 
Combatant.getCombatant(), 
Combatant.setRangeToTarget(int), 
Combatant.mayIFight(PhysicalAgent)public boolean mayPhysicallyAttack(PhysicalAgent victim)
CombatantmayPhysicallyAttack in interface Combatantvictim - the potential combat targetMOB.getVictim(), 
Combatant.setCombatant(PhysicalAgent), 
Combatant.getCombatant(), 
Combatant.setRangeToTarget(int), 
Combatant.mayPhysicallyAttack(PhysicalAgent)public boolean isInCombat()
CombatantisInCombat in interface CombatantMOB.getVictim(), 
MOB.setVictim(MOB), 
Combatant.setCombatant(PhysicalAgent), 
Combatant.getCombatant(), 
Combatant.makePeace(boolean), 
Combatant.setRangeToTarget(int), 
Combatant.mayIFight(PhysicalAgent)public boolean amDead()
SiegableItemamDead in interface CombatantamDead in interface SiegableItemCombatant.killMeDead(boolean), 
MOB.bringToLife(Room, boolean), 
MOB.removeFromGame(boolean, boolean)public boolean mayIFight(PhysicalAgent victim)
CombatantmayIFight in interface Combatantvictim - the potential combat targetMOB.getVictim(), 
Combatant.setCombatant(PhysicalAgent), 
Combatant.getCombatant(), 
Combatant.setRangeToTarget(int), 
Combatant.mayPhysicallyAttack(PhysicalAgent)protected int[] getMagicCoords()
protected int getTacticalDistance(SiegableItem targetI)
protected boolean isAnyoneAtCoords(int[] xy)
protected boolean amInTacticalMode()
protected void clearTacticalMode()
protected void clearTacticalModeInternal()
public void makePeace(boolean includePlayerFollowers)
CombatantmakePeace in interface CombatantincludePlayerFollowers - false to apply only to npc followers, true for npc and playerCombatant.isInCombat(), 
MOB.getVictim(), 
MOB.setVictim(MOB), 
Combatant.setCombatant(PhysicalAgent), 
Combatant.getCombatant(), 
Combatant.setRangeToTarget(int), 
Combatant.mayIFight(PhysicalAgent)public PhysicalAgent getCombatant()
CombatantgetCombatant in interface CombatantCombatant.isInCombat(), 
Combatant.setCombatant(PhysicalAgent), 
Combatant.makePeace(boolean), 
Combatant.setRangeToTarget(int), 
Combatant.mayIFight(PhysicalAgent)public void setCombatant(PhysicalAgent other)
CombatantsetCombatant in interface Combatantother - the combat target, or null for a peace stateCombatant.isInCombat(), 
Combatant.getCombatant(), 
Combatant.makePeace(boolean), 
Combatant.setRangeToTarget(int), 
Combatant.mayIFight(PhysicalAgent)public int[] getTacticalCoords()
SiegableItemgetTacticalCoords in interface SiegableItempublic int getDirectionToTarget()
CombatantgetDirectionToTarget in interface CombatantMOB.getVictim(), 
Combatant.setCombatant(PhysicalAgent), 
Combatant.getCombatant(), 
Combatant.setRangeToTarget(int), 
Combatant.mayIFight(PhysicalAgent)public PairList<Weapon,int[]> getSiegeWeaponAimings()
SiegableItemgetSiegeWeaponAimings in interface SiegableItempublic void destroy()
Contingentdestroy in interface Contingentdestroy in class StdRideablepublic java.lang.String getTacticalView(SiegableItem viewer)
SiegableItemgetTacticalView in interface SiegableItemviewer - an object viewing this onepublic PairList<Item,int[]> getCombatField()
SiegableItemgetCombatField in interface SiegableItempublic void executeMsg(Environmental myHost, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenerexecuteMsg in class StdRideablemyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgprotected java.lang.Boolean startAttack(MOB sourceM, Room thisRoom, java.lang.String rest)
protected void addPlayerAttacker(MOB M)
protected java.util.List<MOB> getPlayerAttackers()
public void announceToUsers(java.lang.String msgStr)
public boolean tick(Tickable ticking, int tickID)
Tickabletick in interface Tickabletick in class StdContainerticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in TickableTickable, 
ServiceEngine, 
TickableGrouppublic boolean okMessage(Environmental myHost, CMMsg msg)
MsgListenerokMessage in interface MsgListenerokMessage in class StdRideablemyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executedCMMsg, 
CMMsg.source()public void setUsesRemaining(int newUses)
ItemsetUsesRemaining in interface ItemsetUsesRemaining in class StdItemnewUses - a new  general numeric value for this field.public java.lang.String healthText(MOB viewer)
CombatanthealthText in interface Combatantviewer - the mob viewing this mobpublic Item killMeDead(boolean createBody)
CombatantkillMeDead in interface CombatantcreateBody - true to create a corpse, false otherwiseCombatant.amDead(), 
MOB.bringToLife(Room, boolean), 
MOB.removeFromGame(boolean, boolean)protected java.lang.String weaponHealth()
public java.lang.String missString()
WeaponmissString in interface WeaponWeapon.hitString(int)public java.lang.String hitString(int damageAmount)
WeaponhitString in interface WeapondamageAmount - the amount of damage done with this weaponWeapon.missString()public int minRange()
EnvironmentalminRange in interface EnvironmentalminRange in class StdItempublic int maxRange()
EnvironmentalmaxRange in interface EnvironmentalmaxRange in class StdItempublic void setRanges(int min,
                      int max)
WeaponsetRanges in interface Weaponmin - the minimum range 0=meleemax - the maximum range 0=meleeEnvironmental.maxRange(), 
Environmental.minRange()public int[] getRanges()
WeapongetRanges in interface WeaponWeapon.setRanges(int, int), 
Environmental.maxRange(), 
Environmental.minRange()public boolean requiresAmmunition()
AmmunitionWeaponrequiresAmmunition in interface AmmunitionWeaponpublic void setAmmunitionType(java.lang.String ammo)
AmmunitionWeaponsetAmmunitionType in interface AmmunitionWeaponammo - the ammunition type stringAmmunition.setAmmunitionType(String), 
AmmunitionWeapon.ammunitionType()public java.lang.String ammunitionType()
AmmunitionWeaponammunitionType in interface AmmunitionWeaponAmmunition.ammunitionType(), 
AmmunitionWeapon.setAmmunitionType(String)public int ammunitionRemaining()
AmmunitionWeaponammunitionRemaining in interface AmmunitionWeaponAmmunitionWeapon.setAmmoRemaining(int)public void setAmmoRemaining(int amount)
AmmunitionWeaponsetAmmoRemaining in interface AmmunitionWeaponamount - the number of units of ammunitionAmmunitionWeapon.ammunitionRemaining()public int ammunitionCapacity()
AmmunitionWeaponammunitionCapacity in interface AmmunitionWeaponAmmunitionWeapon.setAmmoCapacity(int), 
AmmunitionWeapon.rawAmmunitionCapacity()public int rawAmmunitionCapacity()
AmmunitionWeaponrawAmmunitionCapacity in interface AmmunitionWeaponAmmunitionWeapon.setAmmoCapacity(int), 
AmmunitionWeapon.ammunitionCapacity()public void setAmmoCapacity(int amount)
AmmunitionWeaponsetAmmoCapacity in interface AmmunitionWeaponamount - the max number of units of ammunition that can be loadedAmmunitionWeapon.ammunitionCapacity(), 
AmmunitionWeapon.rawAmmunitionCapacity()public int value()
Itempublic boolean subjectToWearAndTear()
ItemsubjectToWearAndTear in interface ItemsubjectToWearAndTear in class StdRideablepublic void recoverOwner()