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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExperienceCost
public ExperienceCost(int xpCost)
- Create an experience cost component.
- Parameters:
xpCost
- Cost of casting spell in experience points.
getCost
public int getCost()
- Determine the cost of casting a spell with this component.
- Returns:
- Cost in experience points.