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

ogs::core::Defense Class Reference

A value that determines effectiveness in avoiding damage. More...

#include <Defense.h>

Inheritance diagram for ogs::core::Defense:

Inheritance graph
[legend]
Collaboration diagram for ogs::core::Defense:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Defense (Modifier::Value baseValue=BASE_VALUE)
 Create a new defense.

Modifier::Value getValue () const
 Determine the current value of this defense.


Static Public Attributes

const Modifier::Value BASE_VALUE = 10
 Value of an unmodified defense.


Detailed Description

Defense is also known as "armor class" but armor is only one of many ways to enhance defense. Thus "defense" is used to indicate a more abstract concept.


Constructor & Destructor Documentation

ogs::core::Defense::Defense Modifier::Value  baseValue = BASE_VALUE  )  [inline]
 

The value is initialized to the base value and contains no modifiers.


Member Function Documentation

Modifier::Value ogs::core::Defense::getValue  )  const [inline]
 

Returns:
Current value of this defense.

Reimplemented from ogs::core::Modifiers.


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