OGS Java API Spec

ogs.magic
Class Subschool

java.lang.Object
  |
  +--ogs.magic.School
        |
        +--ogs.magic.Subschool

public class Subschool
extends School

A subschool of arcane magic. Only three schools of magic (Conjuration, Enchantment, and Illusion) can have a subschools. Note however that a spell in a school with subschools does not have to belong to one of these subschools (though most do).


Field Summary
static int CALLING
          The calling subschool of the conjuration school.
static int CHARM
          The charm subschool of the enchantment school.
static int COMPULSION
          The compulsion subschool of the enchantment school.
static int CREATION
          The creation subschool of the conjuration school.
static int FIGMENT
          The figment subschool of the illusion school.
static int GLAMER
          The glamer subschool of the illusion school.
static int HEALING
          The healing subschool of the conjuration school.
static int PATTERN
          The pattern subschool of the illusion school.
static int PHANTASM
          The phantasm subschool of the illusion school.
static int SHADOW
          The shadow subschool of the illusion school.
static int SUMMONING
          The summoning subschool of the conjuration school.
 
Fields inherited from class ogs.magic.School
ABJURATION, CONJURATION, DIVINATION, ENCHANTMENT, EVOCATION, ILLUSION, NECROMANCY, TRANSMUTATION, UNIVERSAL
 
Constructor Summary
Subschool(int type)
          Create a new subschool.
 
Method Summary
 String getName()
          Determine the name of the subschool.
 int getType()
          Determine the type of subschool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALLING

public static final int CALLING
The calling subschool of the conjuration school.

See Also:
Constant Field Values

CREATION

public static final int CREATION
The creation subschool of the conjuration school.

See Also:
Constant Field Values

HEALING

public static final int HEALING
The healing subschool of the conjuration school.

See Also:
Constant Field Values

SUMMONING

public static final int SUMMONING
The summoning subschool of the conjuration school.

See Also:
Constant Field Values

CHARM

public static final int CHARM
The charm subschool of the enchantment school.

See Also:
Constant Field Values

COMPULSION

public static final int COMPULSION
The compulsion subschool of the enchantment school.

See Also:
Constant Field Values

FIGMENT

public static final int FIGMENT
The figment subschool of the illusion school.

See Also:
Constant Field Values

GLAMER

public static final int GLAMER
The glamer subschool of the illusion school.

See Also:
Constant Field Values

PATTERN

public static final int PATTERN
The pattern subschool of the illusion school.

See Also:
Constant Field Values

PHANTASM

public static final int PHANTASM
The phantasm subschool of the illusion school.

See Also:
Constant Field Values

SHADOW

public static final int SHADOW
The shadow subschool of the illusion school.

See Also:
Constant Field Values
Constructor Detail

Subschool

public Subschool(int type)
Create a new subschool.

Parameters:
type - Type of subschool (CALLING, FIGMENT, etc.)
Throws:
IllegalArgumentException - If type is invalid.
Method Detail

getType

public int getType()
Determine the type of subschool.

Overrides:
getType in class School
Returns:
The type of subschool.

getName

public String getName()
Determine the name of the subschool.

Overrides:
getName in class School
Returns:
Name of subschool, e.g. "Illusion (Figment)".

OGS Java API Spec