Affectable, Behavable, java.lang.Cloneable, CMObject, java.lang.Comparable<CMObject>, Contingent, DBIdentifiable, Environmental, Expireable, Item, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rider, StatsAffecting, Tickable, WearableAmmunitionWeaponArchonStaff, Arquebus, BattleAxe, Broom, Cestus, Claymore, Dagger, DaggerOfVenom, Dirk, DragonClaw, DrowDagger, DrowMace, DrowQuarterstaff, DrowSword, EternityQuarterstaff, FlamingSword, GenBlaster, GenBoffWeapon, GenBow, GenCannon, GenDisruptor, GenDisruptor2, GenElecWeapon, GenGun, GenHandBow, GenLaserGun, GenLasso, GenNet, GenPhaser, GenPhaser2, GenSiegeWeapon, GenSling, GenSmartTorpedo, GenSonicGun, GenSpear, GenStaff, GenTorpedo, GenWeapon, Glaive, Halberd, HolyAvenger, Javelin, Katana, Longsword, Mace, Natural, Quarterstaff, Rapier, Ruler, Sabre, Scimitar, ShieldWeapon, Shortsword, Sickle, SmallDagger, SmallHammer, SmallMace, Spear, Staff, StdBoffWeapon, StdBow, StdElecWeapon, StdGun, StdLasso, StdNet, StdSiegeWeapon, StdSling, StdSmartTorpedo, StdSpaceTechWeapon, StdSpear, StdTorpedo, StdWeapon, Stiletto, Sword, ThrowingStone, Trident, TwoHandedSword, WarHammer, Whippublic interface Weapon extends Item
Wearable.CODES| Modifier and Type | Field | Description |
|---|---|---|
static int |
CLASS_AXE |
One of the weapon classification, denotes an axe swinging type weapon
|
static int |
CLASS_BLUNT |
One of the weapon classification, denotes a blunt type weapon
|
static int |
CLASS_DAGGER |
One of the weapon classification, denotes a dagger type weapon
|
static java.lang.String[] |
CLASS_DESCS |
Description code words for the weapon classifications, indexed
by the weapon classification code values.
|
static int |
CLASS_EDGED |
One of the weapon classification, denotes an edged type weapon
|
static int |
CLASS_FLAILED |
One of the weapon classification, denotes a flailed type weapon
|
static int |
CLASS_HAMMER |
One of the weapon classification, denotes a hammer swinging type weapon
|
static int |
CLASS_NATURAL |
One of the weapon classification, denotes a natural type weapon
|
static int |
CLASS_POLEARM |
One of the weapon classification, denotes a polearm type weapon
|
static int |
CLASS_RANGED |
One of the weapon classification, denotes a ranged type weapon
|
static int |
CLASS_STAFF |
One of the weapon classification, denotes a staff type weapon
|
static int |
CLASS_SWORD |
One of the weapon classification, denotes a sword type weapon
|
static int |
CLASS_THROWN |
One of the weapon classification, denotes a thrown type weapon
|
static int |
MASK_MAXRANGEBITS |
One of the Weapon "armor" mask bits: new max range value mask
|
static int |
MASK_MAXRANGEFLAG |
One of the Weapon "armor" mask bits: is max range overridden
|
static int |
MASK_MAXRANGESHFT |
One of the Weapon "armor" mask bits: max range left-shift
|
static int |
MASK_MAXRANGEZERO |
One of the Weapon "armor" mask bits: zero-out max range
|
static int |
MASK_MINRANGEBITS |
One of the Weapon "armor" mask bits: new min range value mask
|
static int |
MASK_MINRANGEFLAG |
One of the Weapon "armor" mask bits: is min range overridden
|
static int |
MASK_MINRANGESHFT |
One of the Weapon "armor" mask bits: min range left-shift
|
static int |
MASK_MINRANGEZERO |
One of the Weapon "armor" mask bits: zero-out min range
|
static int |
MASK_MOAMMOBITS |
One of the Weapon "armor" mask bits: new more ammo value mask
|
static int |
MASK_MOAMMOFLAG |
One of the Weapon "armor" mask bits: is min range overridden
|
static int |
MASK_MOAMMOSHFT |
One of the Weapon "armor" mask bits: more ammo left-shift
|
static int |
MASK_MOAMMOZERO |
One of the Weapon "armor" mask bits: zero-out more ammo
|
static SHashtable<java.lang.Integer,java.lang.Integer> |
MSG_TYPE_MAP |
Map of CMMsg message types to damage types
|
static int |
TYPE_BASHING |
One of the weapon type, denotes blunt weapon damage
|
static int |
TYPE_BURNING |
One of the weapon type, denotes fire weapon damage
|
static int |
TYPE_BURSTING |
One of the weapon type, denotes explosive weapon damage
|
static int |
TYPE_CORRUPTING |
One of the weapon type, denotes corrupting weapon damage
|
static java.lang.String[] |
TYPE_DESCS |
Description code words for the weapon/damage types, indexed
by the weapon/damage type values.
|
static int |
TYPE_DISRUPTING |
One of the weapon type, denotes disrupting weapon damage
|
static int |
TYPE_FROSTING |
One of the weapon type, denotes cold weapon damage
|
static int |
TYPE_GASSING |
One of the weapon type, denotes poisony weapon damage
|
static int |
TYPE_LASERING |
One of the weapon type, denotes light weapon damage
|
static int |
TYPE_MELTING |
One of the weapon type, denotes acid weapon damage
|
static SHashtable<java.lang.Integer,java.lang.Integer> |
TYPE_MSG_MAP |
Map of damage types to CMMsg msg types
|
static int |
TYPE_NATURAL |
One of the weapon type, denotes natural weapon damage
|
static int |
TYPE_PIERCING |
One of the weapon type, denotes poking weapon damage
|
static int |
TYPE_SCRAPING |
One of the weapon type, denotes scraping weapon damage
|
static int |
TYPE_SHOOT |
One of the weapon type, denotes shooting weapon damage
|
static int |
TYPE_SLASHING |
One of the weapon type, denotes slashing weapon damage
|
static int |
TYPE_SONICING |
One of the weapon type, denotes sonic weapon damage
|
static int |
TYPE_STRIKING |
One of the weapon type, denotes electric weapon damage
|
static int |
TYPE_STULTIFYING |
One of the weapon type, denotes disrupting weapon damage
|
idConverterSTATUS_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_RESETDEFAULT_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| Modifier and Type | Method | Description |
|---|---|---|
int[] |
getRanges() |
Gets the raw minimum and maximum range of this weapon.
|
java.lang.String |
hitString(int damageAmount) |
Gets the string that would be shown if someone gets a hit with
this weapon.
|
java.lang.String |
missString() |
Gets the string that would be shown if someone misses with
this weapon.
|
void |
setRanges(int min,
int max) |
Sets the minimum and maximum range of this weapon.
|
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.
|
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.
|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStatsaddBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptscopyOf, ID, initializeClass, newInstanceamDestroyed, destroy, isSavable, setSavablecanSaveDatabaseID, databaseID, setDatabaseIDdescription, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, textexpirationDate, setExpirationDatebaseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, valuegetSaveStatIndex, getStat, getStatCodes, isStat, setStatexecuteMsg, okMessagedescription, displayText, genericName, nameisReadable, readableText, setReadable, setReadableTextaffectCharState, affectCharStats, affectPhyStatsgetTickStatus, name, tickamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearstatic final int TYPE_NATURAL
static final int TYPE_SLASHING
static final int TYPE_PIERCING
static final int TYPE_BASHING
static final int TYPE_BURNING
static final int TYPE_BURSTING
static final int TYPE_SHOOT
static final int TYPE_FROSTING
static final int TYPE_GASSING
static final int TYPE_MELTING
static final int TYPE_STRIKING
static final int TYPE_LASERING
static final int TYPE_SONICING
static final int TYPE_DISRUPTING
static final int TYPE_STULTIFYING
static final int TYPE_CORRUPTING
static final int TYPE_SCRAPING
static final java.lang.String[] TYPE_DESCS
static final SHashtable<java.lang.Integer,java.lang.Integer> TYPE_MSG_MAP
static final SHashtable<java.lang.Integer,java.lang.Integer> MSG_TYPE_MAP
static final int CLASS_AXE
static final int CLASS_BLUNT
static final int CLASS_EDGED
static final int CLASS_FLAILED
static final int CLASS_HAMMER
static final int CLASS_NATURAL
static final int CLASS_POLEARM
static final int CLASS_RANGED
static final int CLASS_SWORD
static final int CLASS_DAGGER
static final int CLASS_STAFF
static final int CLASS_THROWN
static final java.lang.String[] CLASS_DESCS
static final int MASK_MAXRANGEFLAG
static final int MASK_MAXRANGEBITS
static final int MASK_MAXRANGEZERO
static final int MASK_MAXRANGESHFT
static final int MASK_MINRANGEFLAG
static final int MASK_MINRANGEBITS
static final int MASK_MINRANGEZERO
static final int MASK_MINRANGESHFT
static final int MASK_MOAMMOFLAG
static final int MASK_MOAMMOBITS
static final int MASK_MOAMMOZERO
static final int MASK_MOAMMOSHFT
int weaponDamageType()
TYPE_DESCSvoid setWeaponDamageType(int newType)
newType - get weapon damage type codeTYPE_DESCSint weaponClassification()
CLASS_DESCSvoid setWeaponClassification(int newClassification)
newClassification - the weapon classification codeCLASS_DESCSvoid setRanges(int min,
int max)
min - the minimum range 0=meleemax - the maximum range 0=meleeEnvironmental.maxRange(),
Environmental.minRange()int[] getRanges()
setRanges(int, int),
Environmental.maxRange(),
Environmental.minRange()java.lang.String hitString(int damageAmount)
damageAmount - the amount of damage done with this weaponmissString()java.lang.String missString()
hitString(int)