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

ogs::skills::Spot Class Reference

A skill used to detect hidden or concealed objects.

#include <Spot.h>

Inheritance diagram for ogs::skills::Spot:

Inheritance graph
[legend]
Collaboration diagram for ogs::skills::Spot:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Spot (Points cclassPoints=0, float distance=0.0, bool distracted=false)
 Create a new Spot skill.

float getDistance () const
 Determine the distance of the target from the spotter.

void setDistance (float distance)
 Change the distance of the target from the spotter.

bool isDistracted () const
 Determine if the spotter is distracted.

void setDistracted (bool distracted=true)
 Indicate that the spotter is or is not distracted.


Constructor & Destructor Documentation

Spot::Spot Points  cclassPoints = 0,
float  distance = 0.0,
bool  distracted = false
 

The default distance of a new Spot skill is 10 feet or less. The user of the new Spot skill is not distracted by default.

Parameters:
cclassPoints Points spent for cclass skill.
distance Distance of the target from the spotter.
distracted True if the spotter is distracted.


Member Function Documentation

float ogs::skills::Spot::getDistance  )  const [inline]
 

Returns:
Distance of target from spotter.

bool ogs::skills::Spot::isDistracted  )  const [inline]
 

Returns:
True if spotter is distracted.

void Spot::setDistance float  distance  ) 
 

A -1 modifier is added to the skill check for every 10 feet of the target from the spotter.

Parameters:
distance Distance of target from spotter.

void Spot::setDistracted bool  distracted = true  ) 
 

A -5 modifier is automatically added to Spot checks if the spotter is distracted or removed if the spotter is no longer distracted.

Parameters:
distracted True if the spotter is distracted (default) or false if the spotter is not distracted.


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