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

ogs::magic::feats::ExtendSpell Class Reference

A metamagic feat that doubles the duration of a spell. More...

#include <ExtendSpell.h>

Inheritance diagram for ogs::magic::feats::ExtendSpell:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ExtendSpell ()
 Create a new Extend Spell metamagic feat.

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

bool detachSpell (Spell &spell)

Static Public Attributes

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


Detailed Description

An extended spell uses up a spell slot one level higher than a spell's normal level.

Todo:
Should be able to completely implement this spell. The only spells that this feat does not affect (AFAIK) are instantaneous and permanent spells.


Member Function Documentation

bool ogs::magic::feats::ExtendSpell::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::ExtendSpell::COST = 1 [static]
 

Extend Spell feats use up a spell slot 1 level higher than normal.


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