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

ogs::magic::DescriptorsBase< Size > Class Template Reference

A set of spell descriptors. More...

#include <Descriptors.h>

List of all members.

Public Types

typedef size_t Type
 An integer type representing a type of descriptor.


Static Public Member Functions

std::string getName (Type type)
 Determine the name of a spell descriptor.


Static Public Attributes

const Type ACID = 0
 Spells with acidic effects.

const Type CHAOTIC = 1
 Spells with chaotic natures.

const Type COLD = 2
 Spells with freezing effects.

const Type DARKNESS = 3
 Spells with derkening effects.

const Type DEATH = 4
 Spells that deal with death.

const Type ELECTRICITY = 5
 Spells with shocking effects.

const Type EVIL = 6
 Spells with evil natures.

const Type FEAR = 7
 Spells that instill fright, terror, and dread.

const Type FIRE = 8
 Spells with burning effects.

const Type FORCE = 9
 Spells that employ invisible forces.

const Type GOOD = 10
 Spells with good natures.

const Type LANGUAGE_DEPENDENT = 11
 Spells that depend on language barriers.

const Type LAWFUL = 12
 Spells with lawful natures.

const Type LIGHT = 13
 Spells with brightening effects.

const Type MIND_AFFECTING = 14
 Spells that affect the mind.

const Type SONIC = 15
 Spells dealing with tremors, resonances, and vibrations.

const Type TELEPORTATION = 16
 Spells that instantly transport objects.


Detailed Description

template<size_t Size>
class ogs::magic::DescriptorsBase< Size >

A spell descriptor identifies the nature of a spell. Spell descriptors are used mainly when determining immunitites or resistances to certain types of spells. This class can be extended to add more descriptors if needed.


Member Typedef Documentation

template<size_t Size>
typedef size_t ogs::magic::DescriptorsBase< Size >::Type
 

Values of this type can be used as bit positions in the std::bitset class. If this class is extended, values ranging from 0 to 16 are reserved. This type is explicitly named in case the underlying type should changes in the future.


Member Function Documentation

template<size_t Size>
std::string ogs::magic::DescriptorsBase< Size >::getName Type  type  )  [static]
 

An empty string is returned if the spell descriptor is invalid. Derived classes should override this function if additional spell descriptors are defined.

Returns:
"Acid", "Chaotic", "Cold", ... or "".


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