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

ogs::magic::feats::EmpowerSpell Class Reference

A metamagic feat that increases all numeric effects of a spell by one-half. More...

#include <EmpowerSpell.h>

Inheritance diagram for ogs::magic::feats::EmpowerSpell:

Inheritance graph
[legend]
Collaboration diagram for ogs::magic::feats::EmpowerSpell:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EmpowerSpell ()
 Create a new Empower Spell metamagic feat.

bool attachSpell (Spell &spell)
 Attach this metamagic feat to a spell.

bool detachSpell (Spell &spell)

Static Public Attributes

const Cost COST = 2
 The cost of using this metamagic feat.


Detailed Description

An empowered spell uses up a spell slot two levels higher than a spell's normal level.

Todo:
This feat affects different spells in different ways and, for some, not at all. In other words, the effects of this feat depend on the the type of spell and the spell class itself will have to determine how this feat affects it. Consequently, the spell class will also have to determine if these effects can be reversed and somehow allow the feat to store this information. So the attach and detach operations will basically just store and retrieve this information for the spell.


Member Function Documentation

bool ogs::magic::feats::EmpowerSpell::attachSpell Spell spell  )  [virtual]
 

This method should always be called first by derived objects that override this function.

Parameters:
spell A spell instance.
Returns:
True if this metamagic feat is attached to the spell

Reimplemented from ogs::magic::MetamagicFeat.


Member Data Documentation

const Cost ogs::magic::feats::EmpowerSpell::COST = 2 [static]
 

Empower Spell feats use up a spell slot 2 levels higher than normal.


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