OGS Java API Spec

ogs.magic
Class ExperienceCost

java.lang.Object
  |
  +--ogs.magic.Component
        |
        +--ogs.magic.ExperienceCost

public class ExperienceCost
extends Component

A spell component that requires a loss of experience points. A spell caster can not cast a spell that would reduces his or her experience level.


Field Summary
 
Fields inherited from class ogs.magic.Component
DIVINE_FOCUS, EXPERIENCE_COST, FOCUS, MATERIAL, SOMANTIC, VERBAL
 
Constructor Summary
ExperienceCost(int xpCost)
          Create an experience cost component.
 
Method Summary
 int getCost()
          Determine the cost of casting a spell with this component.
 
Methods inherited from class ogs.magic.Component
DivineFocus, getAbbreviation, getType, Somantic, Verbal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExperienceCost

public ExperienceCost(int xpCost)
Create an experience cost component.

Parameters:
xpCost - Cost of casting spell in experience points.
Method Detail

getCost

public int getCost()
Determine the cost of casting a spell with this component.

Returns:
Cost in experience points.

OGS Java API Spec