Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ogs::magic::ExperienceCost Class Reference

A spell component that costs experience points to cast. More...

#include <ExperienceCost.h>

Inheritance diagram for ogs::magic::ExperienceCost:

Inheritance graph
[legend]
Collaboration diagram for ogs::magic::ExperienceCost:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ExperienceCost (ogs::core::XP::Points xpCost)
 Create an experience cost component.

ogs::core::XP::Points getCost () const
 Determine the cost of casting a spell with this component.


Detailed Description

A spell caster can not cast a spell that would reduces his or her experience level.


Constructor & Destructor Documentation

ogs::magic::ExperienceCost::ExperienceCost ogs::core::XP::Points  xpCost  )  [inline]
 

Parameters:
xpCost Cost of casting spell in experience points.


Member Function Documentation

ogs::core::XP::Points ogs::magic::ExperienceCost::getCost  )  const [inline]
 

Returns:
Cost in experience points.


The documentation for this class was generated from the following file:
Generated on Sun Apr 20 03:40:00 2003 for Open Gaming System (OGS) by doxygen1.3