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

ogs::magic::abilities::Intelligence Class Reference

A Intelligence ability score extended with additional functions to support magic. More...

#include <Intelligence.h>

Inheritance diagram for ogs::magic::abilities::Intelligence:

Inheritance graph
[legend]
Collaboration diagram for ogs::magic::abilities::Intelligence:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Intelligence ()
 Create a new Intelligence score.

 Intelligence (ogs::core::Ability::Method &method)
 Create a new Strength score using a method.

int getHighestSpellLevel () const
 Determine highest spell level that can be cast.

SpellCounts getBonusSpells () const
 Determine bonus spells for this ability.


Detailed Description

These functions are specified by the ogs::magic::Ability base class. They include determining the highest spell level and bonus number of spells.


Constructor & Destructor Documentation

ogs::magic::abilities::Intelligence::Intelligence  )  [inline]
 

The Intelligence score is generated using the standard method.

ogs::magic::abilities::Intelligence::Intelligence ogs::core::Ability::Method method  )  [inline]
 

Parameters:
method A method for generating ability scores.


Member Function Documentation

SpellCounts ogs::magic::abilities::Intelligence::getBonusSpells  )  const [inline, virtual]
 

Returns:
Number of bonus spells per spell level.

Implements ogs::magic::Ability.

int ogs::magic::abilities::Intelligence::getHighestSpellLevel  )  const [inline, virtual]
 

A negative value indicates that spells can not be cast based on this ability.

Returns:
Highest spell level.

Implements ogs::magic::Ability.


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