wyvern.lib.classes.magic
Class Art

java.lang.Object
  extended bywyvern.lib.classes.magic.Art

public class Art
extends java.lang.Object

Class that represents the four spell Arts.

Version:
1.0, Nov 05, 2003
Author:
Steve Yegge

Field Summary
static Art CONJURATION
           
static java.util.List CONJURATION_ONLY
           
static Art ENCHANTMENT
           
static java.util.List ENCHANTMENT_ONLY
          An unmodifiable List containing FIRE and WATER, used for multi-element spells of fire and water.
static Art EVOCATION
           
static java.util.List EVOCATION_ONLY
           
static Art INCANTATION
           
static java.util.List INCANTATION_ONLY
           
 
Method Summary
 java.lang.String getCapName()
          Returns the capitalized name for this Art, e.g.
static Art getForName(java.lang.String name)
          Returns the Art for the specified (lowercase) name.
 java.lang.String getName()
          Returns the Art name.
 java.lang.String getSkillName()
          Returns the skill name for this Art, e.g.
 java.lang.String toString()
          Returns the Art name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENCHANTMENT

public static final Art ENCHANTMENT

CONJURATION

public static final Art CONJURATION

EVOCATION

public static final Art EVOCATION

INCANTATION

public static final Art INCANTATION

ENCHANTMENT_ONLY

public static final java.util.List ENCHANTMENT_ONLY
An unmodifiable List containing FIRE and WATER, used for multi-element spells of fire and water.


CONJURATION_ONLY

public static final java.util.List CONJURATION_ONLY

EVOCATION_ONLY

public static final java.util.List EVOCATION_ONLY

INCANTATION_ONLY

public static final java.util.List INCANTATION_ONLY
Method Detail

toString

public java.lang.String toString()
Returns the Art name. (lowercase)


getForName

public static Art getForName(java.lang.String name)
Returns the Art for the specified (lowercase) name.

Parameters:
name - the lowercased name: "incantation", "evocation", "conjuration", or "enchantment"
Returns:
the corresponding Art

getName

public java.lang.String getName()
Returns the Art name. (lowercase)


getSkillName

public java.lang.String getSkillName()
Returns the skill name for this Art, e.g. "sk-conjuration"


getCapName

public java.lang.String getCapName()
Returns the capitalized name for this Art, e.g. "Conjuration"