|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.BitSet | +--ogs.magic.Descriptors
A descriptor indicates the nature of a spell. Descriptors are used mainly when determining immunitites or resistances to certain types of spells. This class represents a standard set of descriptors. The bit set methods provided by the super class are used to manipulate and check individual descriptors. This class can also be extended to add user-defined descriptors if needed. Descriptor values ranging from 1 to 20 are reserved for future use by this class.
Field Summary | |
static int |
ACID
Spells with acidic effects. |
static int |
CHAOTIC
Spells dealing with chaotic natures. |
static int |
COLD
Spells with freezing effects. |
static int |
DARKNESS
Spells with darkening effects. |
static int |
DEATH
Spells that deal with death. |
static int |
ELECTRICITY
Spells with shocking effects. |
static int |
EVIL
Spells dealing with evil natures. |
static int |
FEAR
Spells that instill fright, terror, and dread. |
static int |
FIRE
Spells with burning effects. |
static int |
FORCE
Spells that employ invisible forces. |
static int |
GOOD
Spells dealing with good natures. |
static int |
LANGUAGE_DEPENDENT
Spells that depend on language barriers. |
static int |
LAWFUL
Spells dealing with lawful natures. |
static int |
LIGHT
Spells with brightening effects. |
static int |
MIND_AFFECTING
Spells that affect the mind. |
static int |
SONIC
Spells dealing with tremors, resonances, and vibrations. |
static int |
TELEPORTATION
Spells that instantly transport objects. |
Constructor Summary | |
Descriptors()
Create an empty set of descriptors. |
Method Summary | |
static String |
getName(int descriptor)
Determine the name of a descriptor. |
protected static boolean |
isValid(int value)
Determine if an integer value is a valid descriptor. |
Methods inherited from class java.util.BitSet |
and, andNot, cardinality, clear, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, set, set, set, set, size, toString, xor |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ACID
public static final int CHAOTIC
public static final int COLD
public static final int DARKNESS
public static final int DEATH
public static final int ELECTRICITY
public static final int EVIL
public static final int FEAR
public static final int FIRE
public static final int FORCE
public static final int GOOD
public static final int LANGUAGE_DEPENDENT
public static final int LAWFUL
public static final int LIGHT
public static final int MIND_AFFECTING
public static final int SONIC
public static final int TELEPORTATION
Constructor Detail |
public Descriptors()
Method Detail |
public static String getName(int descriptor)
descriptor
- One of the standard descriptors (ACID, COLD, etc.)
protected static boolean isValid(int value)
value
- An integer value.
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |