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

ogs::items::rings::Protection Class Reference

A magic ring that adds a deflection bonus to defense. More...

#include <Protection.h>

Inheritance diagram for ogs::items::rings::Protection:

Inheritance graph
[legend]
Collaboration diagram for ogs::items::rings::Protection:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Bonus {
  PLUS_1 = 1, PLUS_2 = 2, PLUS_3 = 3, PLUS_4 = 4,
  PLUS_5 = 5
}
 The defense bonus provided by rings of protection. More...


Public Member Functions

 Protection (Bonus bonus)
 Create a new ring of protection.

unsigned getCasterLevel () const
 Determine the caster level of this magic item.

void equipItem (Creature &creature)
void unequipItem (Creature &creature)
const Modifier & getModifier () const
 Determine the modifier for this ring of protection.


Detailed Description

The bonus can range from +1 to +5. The market price depends on this bonus. A ring of protection acts as a 5th level caster. To create a ring of protection, the creator must have the Forge Ring feat, a shield of faith spell, and an experience level that is at least three times the deflection bonus.


Member Enumeration Documentation

enum ogs::items::rings::Protection::Bonus
 

Enumeration values:
PLUS_1  A +1 defense bonus.

Market price is 2,000 gp.

PLUS_2  A +2 defense bonus.

Market price is 8,000 gp.

PLUS_3  A +3 defense bonus.

Market price is 18,000 gp.

PLUS_4  A +4 defense bonus.

Market price is 32,000 gp.

PLUS_5  A +5 defense bonus.

Market price is 50,000 gp.


Constructor & Destructor Documentation

ogs::items::rings::Protection::Protection Bonus  bonus  ) 
 

Parameters:
bonus Deflection bonus of ring.


Member Function Documentation

unsigned ogs::items::rings::Protection::getCasterLevel  )  const [inline]
 

Returns:
5th level.

const Modifier & ogs::items::rings::Protection::getModifier  )  const [inline]
 

The modifier is a deflection bonus that is added to defense.

Returns:
Deflection bonus for defense.


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