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

ogs::magic::Range Class Reference

Maximum distance from caster that a spell affect can occur. More...

#include <Range.h>

Inheritance diagram for ogs::magic::Range:

Inheritance graph
[legend]
List of all members.

Public Types

enum  Type {
  PERSONAL = 1, TOUCH, ABSOLUTE, CLOSE,
  MEDIUM, LONG, UNLIMITED
}
 A standard type of spell range. More...


Public Member Functions

Type getType () const
 Determine type of this spell range.


Static Public Member Functions

Range Personal ()
 Create a new Personal spell range.

Range Touch ()
 Create a new Touch spell range.

Range Unlimited ()
 Create a new Unlimited spell range.


Protected Member Functions

 Range (Type type)
 Create a new range.


Detailed Description

A spell range can be one of several different types. The standard types are Peronsal, Touch, Absolute, Close, Medium, Long, and Unlimited. This class represents the Personal, Touch, and Unlimited types. The Absolute, Close, Medium, and Long classes are represented by the AbsoluteRange and LevelRange classes.

See also:
AbsoluteRange

LevelRange


Member Enumeration Documentation

enum ogs::magic::Range::Type
 

Enumeration values:
PERSONAL  Personal range affects the caster only.
TOUCH  Touch range is limited to arm's reach.
ABSOLUTE  Absolute range is limited to an absolute distance.
CLOSE  Close range reaches 25 feet plus 5 feet per 2 caster levels.
MEDIUM  Medium range reaches 100 feet plus 10 feet per caster level.
LONG  Long range reaches 400 feet plus 40 feet per caster level.
UNLIMITED  Unlimited range is limited to the same plane of existance.


Constructor & Destructor Documentation

ogs::magic::Range::Range Type  type  )  [inline, protected]
 

Parameters:
type Type of range.


Member Function Documentation

Range::Type ogs::magic::Range::getType  )  const [inline]
 

Returns:
Type of spell range.

Range ogs::magic::Range::Personal  )  [inline, static]
 

Returns:
Spell range with Personal type.

Range ogs::magic::Range::Touch  )  [inline, static]
 

Returns:
Spell range with Touch type.

Range ogs::magic::Range::Unlimited  )  [inline, static]
 

Returns:
Spell range with Unlimited type.


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