|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.support.Object | +--ogs.core.Entity | +--ogs.core.Item | +--ogs.items.Weapon
An item used in combat to damage opponents.
Field Summary | |
static int |
BASHING
Inflicts bashing damage. |
protected static Die |
damage
Die used to roll damage inflicted by weapon. |
protected static int[] |
damageType
Type of damage inflicted by weapon. |
static int |
EXOTIC
Requires exotic weapon proficiency. |
static int |
MARTIAL
Requires martial weapon proficiency. |
protected static int |
normalThreatRange
Threat range of a normal weapon of this class. |
static int |
PIERCING
Inflicts piercing damage. |
static int |
SIMPLE
Requires simple weapon proficiency. |
static int |
SLASHING
Inflicts slashing damage. |
protected int |
threatRange
Threat range of this particular weapon. |
Fields inherited from class ogs.core.Item |
GLASS, IRON, PAPER, STONE, UNKNOWN, WOOD |
Fields inherited from class ogs.core.Entity |
currentHealth, defense, maximumHealth, size, weight |
Fields inherited from class ogs.support.Object |
listeners |
Constructor Summary | |
Weapon()
|
Method Summary | |
static int[] |
getDamageType()
Determine type of damage inflicted by weapon. |
static int |
getNormalThreatRange()
Determine threat range of a normal weapon. |
static int |
getProficiency()
Determine proficiency of weapon. |
int |
getThreatRange()
Determine threat range of this weapon. |
Methods inherited from class ogs.core.Item |
getDensity, getHardness, getMaterial, getThickness, getWorth, setDensity, setHardness, setMaterial, setThickness, setWorth, updateHealthPoints |
Methods inherited from class ogs.core.Entity |
getCurrentHealth, getDefense, getMaximumHealth, getSize, getWeight, setCurrentHealth, setMaximumHealth, setWeight |
Methods inherited from class ogs.support.Object |
addListener, handleEvent, notifyListeners, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SIMPLE
public static final int MARTIAL
public static final int EXOTIC
public static final int BASHING
public static final int PIERCING
public static final int SLASHING
protected static int[] damageType
protected static Die damage
protected static int normalThreatRange
protected int threatRange
Constructor Detail |
public Weapon()
Method Detail |
public static int getProficiency()
public static int[] getDamageType()
public static int getNormalThreatRange()
public int getThreatRange()
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |