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

ogs::feats::Alertness Class Reference

A feat that adds a +2 bonus to all Listen and Spot skill checks. More...

#include <Alertness.h>

Inheritance diagram for ogs::feats::Alertness:

Inheritance graph
[legend]
Collaboration diagram for ogs::feats::Alertness:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Alertness ()
 Create a new Alertness feat.

bool attachObject (Object &object)
 Attach this feat to an object.

bool detachObject ()
 Detach this feat from an object.


Detailed Description

Todo:
Make the data member static?


Member Function Documentation

bool Alertness::attachObject Object &  object  )  [virtual]
 

This function adds a +2 bonus to Listen and Spot skill checks if the creature has either or both of these skills.

Parameters:
object Object to attach this feat to.
Returns:
True if feat is attached to object.

Reimplemented from ogs::core::Feature.

bool Alertness::detachObject  )  [virtual]
 

This function removes the bonus added to Listen and Spot skill checks by the attachObject() function.

Returns:
True if this feat is detached from object.

Reimplemented from ogs::core::Feature.


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