|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.magic.Component
An element required for the preparation or casting of a spell. A
spell component can be one of several different types. The standard
types are Verbal, Somantic, Material, Focus, Divine Focus, and
Experience Cost. This class represents the simple types Verbal,
Somantic, and Divine Focus. The remaining types Material, Focus, and
Experience Cost are represented by the PhysicalComponent
and ExperienceCost
classes.
Field Summary | |
static int |
DIVINE_FOCUS
A holy symbol or other religous object. |
static int |
EXPERIENCE_COST
A loss of experience points. |
static int |
FOCUS
A reusable substance or object. |
static int |
MATERIAL
An expendible substance or object. |
static int |
SOMANTIC
A bodily movement or gesture. |
static int |
VERBAL
A spoken or audible incantation. |
Constructor Summary | |
protected |
Component(int type)
Create a new component. |
Method Summary | |
static Component |
DivineFocus()
Create a new Divine Focus spell component. |
String |
getAbbreviation()
Determine the abbreviation for this type of component. |
int |
getType()
Determine the type of component. |
static Component |
Somantic()
Create a new Somantic spell component. |
static Component |
Verbal()
Create a new Verbal spell component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VERBAL
public static final int SOMANTIC
public static final int MATERIAL
public static final int FOCUS
public static final int DIVINE_FOCUS
public static final int EXPERIENCE_COST
Constructor Detail |
protected Component(int type)
type
- Type of component (VERBAL, SOMANTIC, MATERIAL, etc.)
IllegalArgumentException
- If type is not a valid component type.Method Detail |
public static Component Verbal()
public static Component Somantic()
public static Component DivineFocus()
public int getType()
public String getAbbreviation()
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |