#include <BonusFeat.h>
Inheritance diagram for ogs::feats::BonusFeat:
Public Types | |
enum | Restriction { NONE, COMBAT_FEAT_ONLY, MAGIC_FEAT_ONLY } |
Indicates any restrictions on the replacment feat. More... | |
Public Member Functions | |
BonusFeat (Restriction restriction=NONE) | |
Create a new bonus feat. | |
Feat::Compatibility | getCompatibility () const |
Determine the compatability of this feat. | |
Feat::Group | getGroup () const |
Determine the group that this feat belongs to. | |
Restriction | getRestriction () const |
Determine the restriction for this bonus feat. | |
Feat * | getFeat () const |
Determine the selected feat for this bonus feat. | |
bool | setFeat (Feat &feat) |
Replace this bonus feat with another feat. |
Bonus feats are features of humans, fighters, rogues, and wizards. Humans automatically gain a bonus feat as a racial trait. Rogues can choose a bonus feat instead of other special abilities at 10th level and higher. Fighters gain a bonus feat about every two levels and wizards every five levels. The selected feat for fighters and wizards have restrictions. A fighter must select a combat feat and a wizard must select a magic feat. Bonus feats for humans and rogues have no restrictions.
|
|
If the specified restriction is invalid, the bonus feat has no restrictions.
|
|
Bonus feats are repeatable feats by themselves. After a feat is selected, the compatability of a bonus feat is the same as the selected feat.
Reimplemented from ogs::core::Feat. |
|
If no feat has been selected yet, this function returns NULL.
|
|
Bonus feats are special feats by themselves. After a feat is selected, the group of a bonus feat is the same as the selected feat.
Reimplemented from ogs::core::Feat. |
|
|
|
|