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

ogs::core::Strength Class Reference

An ability that determines physical power and force. More...

#include <Strength.h>

Inheritance diagram for ogs::core::Strength:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Strength ()
 Create a new Strength score.

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

float getLightLoad (Size::Type sizeType=Size::MEDIUM) const
 Determine the limit of light loads for this ability.

float getMediumLoad (Size::Type sizeType=Size::MEDIUM) const
 Determine the limit of medium loads for this ability.

float getHeavyLoad (Size::Type sizeType=Size::MEDIUM) const
 Determine the limit of heavy loads for this ability.


Detailed Description

A Strength modifier is added to attack rolls with melee weapons and damage rolls with melee weapons, thrown weapons, and specially designed projectile weapons. Strength is a special ability that has additional operations for determining carrying capacities.

Todo:
Change pounds in load functions to locale-dependent units.


Constructor & Destructor Documentation

ogs::core::Strength::Strength  )  [inline]
 

The Strength score is generated using the standard method.

ogs::core::Strength::Strength Ability::Method method  )  [inline]
 

Parameters:
method A method for generating ability scores.


Member Function Documentation

float ogs::core::Strength::getHeavyLoad Size::Type  sizeType = Size::MEDIUM  )  const [inline]
 

Parameters:
sizeType Size type of creature.
Returns:
Weight in pounds.

float ogs::core::Strength::getLightLoad Size::Type  sizeType = Size::MEDIUM  )  const [inline]
 

Parameters:
sizeType Size type of creature.
Returns:
Weight in pounds.

float ogs::core::Strength::getMediumLoad Size::Type  sizeType = Size::MEDIUM  )  const [inline]
 

Parameters:
sizeType Size type of creature.
Returns:
Weight in pounds.


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