OGS Java API Spec

ogs.magic
Class School

java.lang.Object
  |
  +--ogs.magic.School
Direct Known Subclasses:
Subschool

public class School
extends Object

A school of arcane magic. Each type of spell belongs to only one school. Some schools are further divided into subschools.

See Also:
Subschool

Field Summary
static int ABJURATION
          Spells that provide protection or banish other creatures.
static int CONJURATION
          Spells that bring creatures or materials to the caster.
static int DIVINATION
          Spells that reveal information.
static int ENCHANTMENT
          Spells that enchant items and charm creatures.
static int EVOCATION
          Spells that manipulate matter and energy.
static int ILLUSION
          Spells that alter perception and create false images.
static int NECROMANCY
          Spells that manipulate life and death.
static int TRANSMUTATION
          Spells that alter physical forms.
static int UNIVERSAL
          Spells that deal with magic in general.
 
Constructor Summary
School(int type)
          Create a new school.
 
Method Summary
 String getName()
          Determine the name of this school.
 int getType()
          Determine the type of school.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIVERSAL

public static final int UNIVERSAL
Spells that deal with magic in general.

See Also:
Constant Field Values

ABJURATION

public static final int ABJURATION
Spells that provide protection or banish other creatures. A wizard that specializes in this school is prohibited to one of Conjuration, Enchantment, Evocation, Illusion, or Transmutation; or both Divination and Necromancy.

See Also:
Constant Field Values

CONJURATION

public static final int CONJURATION
Spells that bring creatures or materials to the caster. A wizard that specializes in this school is prohibited to any one of the following: (a) Evocation; (b) any two of Abjuration, Enchantment, and Illusion; (c) Transmutation; or (d) any three schools.

See Also:
Constant Field Values

DIVINATION

public static final int DIVINATION
Spells that reveal information. A wizard that specializes in this school is prohibited to any one of the other schools of the wizard's choice.

See Also:
Constant Field Values

ENCHANTMENT

public static final int ENCHANTMENT
Spells that enchant items and charm creatures. A wizard that specializes in this school is prohibited to one of Abjuration, Conjuration, Evocation, Illusion, or Transmutation; or both Divination and Necromancy.

See Also:
Constant Field Values

EVOCATION

public static final int EVOCATION
Spells that manipulate matter and energy. A wizard that specializes in this school is prohibited to one of the following: (a) Conjuration; (b) Transmutation; (c) any two of Abjuration, Enchantment, and Illusion; or (d) any three schools.

See Also:
Constant Field Values

ILLUSION

public static final int ILLUSION
Spells that alter perception and create false images. A wizard that specializes in this school is prohibited to one of Abjuration, Conjuration, Enchantment, Evocation, or Transmutation; or both Divination and Necromancy.

See Also:
Constant Field Values

NECROMANCY

public static final int NECROMANCY
Spells that manipulate life and death. A wizard that specializes in this school is prohibited to any other school of the wizard's choice.

See Also:
Constant Field Values

TRANSMUTATION

public static final int TRANSMUTATION
Spells that alter physical forms. A wizard that specializes in this school is prohibited to any one of the following: (a) Conjuration; (b) Evocation; (c) any two of Abjuration, Enchantment, and Illusion; or (d) any three schools.

See Also:
Constant Field Values
Constructor Detail

School

public School(int type)
Create a new school. This constructor is protected: it can only be used by this class or derived classes.

Parameters:
type - Type of shocol (UNIVERSAL, ABJURATION, etc.)
Throws:
IllegalArgumentException - If type is invalid.
Method Detail

getType

public int getType()
Determine the type of school.

Returns:
The type of school.

getName

public String getName()
Determine the name of this school.

Returns:
Name of school ("Universal", "Illusion", etc.)

OGS Java API Spec