|
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.Range
Maximum distance from caster that a spell affect can occur. A spell
range can be one of several different types. The standard types are
Personal, Touch, Absolute, Close, Medium, Long, and Unlimited. This
class represents the simple types Personal, Touch, and Unlimited.
The Absolute, Close, Medium, and Long types are represented by the
AbsoluteRange
and LevelRange
classes.
Field Summary | |
static int |
ABSOLUTE
Absolute range is limited to an absolute distance. |
static int |
CLOSE
Close range reaches 25 feet plus 5 feet per 2 caster levels. |
static int |
LONG
Long range reaches 400 feet plus 40 feet per caster level. |
static int |
MEDIUM
Medium range reaches 100 feet plus 10 feet per caster level. |
static int |
PERSONAL
Personal range affects the caster only. |
static int |
TOUCH
Touch range is limited to arm's reach. |
static int |
UNLIMITED
Unlimited range reaches anywhere on the same plane of existance. |
Constructor Summary | |
protected |
Range(int type)
Create a new range. |
Method Summary | |
int |
getType()
Determine the type of range. |
static Range |
Personal()
Create a new Personal spell range. |
static Range |
Touch()
Create a new Touch spell range. |
static Range |
Unlimited()
Create a new Unlimited spell range. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PERSONAL
public static final int TOUCH
public static final int ABSOLUTE
public static final int CLOSE
public static final int MEDIUM
public static final int LONG
public static final int UNLIMITED
Constructor Detail |
protected Range(int type)
type
- Type of range (PERSONAL, TOUCH, ABSOLUTE, etc.)
IllegalArgumentException
- If type is not a valid range type.Method Detail |
public static Range Personal()
public static Range Touch()
public static Range Unlimited()
public int getType()
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |