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

ogs::feats::SingleWeapon< _WeaponType > Class Template Reference

A weapon proficiency for a single weapon. More...

#include <SingleWeapon.h>

Inheritance diagram for ogs::feats::SingleWeapon< _WeaponType >:

Inheritance graph
[legend]
Collaboration diagram for ogs::feats::SingleWeapon< _WeaponType >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _WeaponType WeaponType
 Type of weapon that this proficiency applies to.


Public Member Functions

 SingleWeapon ()
 Create a new single weapon proficiency.

Feat::Compatibility getCompatibility () const
 Determine the compatability of this feat.

ogs::items::Weapon::Proficiency getProficiency () const
 Determine proficiency of weapon that this feat applies to.

bool isProficient (const ogs::items::Weapon &weapon) const

Detailed Description

template<class _WeaponType>
class ogs::feats::SingleWeapon< _WeaponType >

Some classes are automatically proficient only with specific types of weapons, some of which are simple weapons. Single weapon proficiency feats for martial weapons and exotic weapons can also be taken optionally.


Constructor & Destructor Documentation

template<class _WeaponType>
SingleWeapon::SingleWeapon  ) 
 

This constructor will throw an exception if the template parameter is not a class derived from the Weapon class.

Exceptions:
std::bad_cast If WeaponType is not a type of weapon.


Member Function Documentation

template<class _WeaponType>
ogs::core::Feat::Compatibility ogs::feats::SingleWeapon< _WeaponType >::getCompatibility  )  const [inline]
 

Single weapon proficiency feats are repeatable feats. Each time a single weapon feat is taken, it applies to a new weapon.

Returns:
Feat::EXCLUSIVE

Reimplemented from ogs::core::Feat.

template<class _WeaponType>
ogs::items::Weapon::Proficiency ogs::feats::SingleWeapon< _WeaponType >::getProficiency  )  const [inline]
 

Returns:
Proficiency of weapon: SIMPLE, MARTIAL, or EXOTIC.

Reimplemented from ogs::feats::WeaponProficiency.


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