All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Protected Types | Protected Attributes | List of all members
SWRS::FeatureImpl Class Reference

implementation of feature class More...

#include <featureimpl.hpp>

Inheritance diagram for SWRS::FeatureImpl:
Inheritance graph
Collaboration diagram for SWRS::FeatureImpl:
Collaboration graph

Public Member Functions

 FeatureImpl ()
 default constructor
void SetExcludedHindrance (const std::string &h_name)
 if hindrance cannot be taken with this particular feature
int SetName (const std::string &name)
 set name
const std::string & GetName () const
 get name
int SetFlavorText (const std::string &flavor_text)
 set flavor text
const std::string & GetFlavorText () const
 get flavor text for this particular feature
int SetCharismaModifier (int)
 get charisma modifier
int GetCharisma (IConstCharacter *LowerInChain) const
 get actual charisma
int SetToughnessModifier (int)
 get tougness modifier
int GetToughness (IConstCharacter *LowerInChain) const
 get toughness
int SetParryModifier (int)
 set parry modifier
int GetParry (IConstCharacter *LowerInChain) const
 get parry
int SetPaceModifier (int)
 get parry modifier
int GetPace (IConstCharacter *LowerInChain) const
 get actual pace
int SetPowerPointsModifier (int)
 how many power points are granted by this feature
int GetPowerPoints (IConstCharacter *LowerInChain) const
 how many powert points are granted
int SetPowerAllowanceModifier (int)
 how this feature affects amount of psy/magical powers allowed
int GetPowerAllowance (IConstCharacter *LowerInChain) const
 calculate total power allowance
int SetSkillsPointsModifier (int m)
 how many points are added for skills
int GetSkillsPoints (IConstCharacter *LowerInChain) const
 what is total skill points allowance
int SetAttributesPointsModifier (int m)
 how many points can be spent additionally on attributes
int GetAttributesPoints (IConstCharacter *LowerInChain) const
 total attributes points
int SetEdgesPointsModifier (int m)
 how many additional edges can be chosen?
int GetEdgesPoints (IConstCharacter *LowerInChain) const
 total number of edges
int SetRequiredSkillsPerAttribute (const std::string &attr_name, int i)
 How many skills have to be chosen for attribute given.
int GetRequiredSkillsPerAttribute (const std::string &attr_name, IConstCharacter *LowerInChain) const
 How many skills have to be chosen for attribute given - total.
int SetTraitLevelModifier (const std::string &attr_name, int i)
 does this trait/attribute receive special modifier for this particular feature
int GetTraitLevelModifier (const std::string &attr_name, IConstCharacter *LowerInChain) const
 total modifier
virtual std::pair< bool,
std::string > 
DoesCharacterMeetRequirements (const ICharacter &c) const

Protected Types

typedef std::vector< std::string > StringVector
 vector of strings
typedef StringVector ExcludedHindranceVector
 semantic stuff

Protected Attributes

ExcludedHindranceVector exc_hindrances

Detailed Description

implementation of feature class

Member Function Documentation

std::pair< bool, std::string > SWRS::FeatureImpl::DoesCharacterMeetRequirements ( const ICharacter c) const

does character meet requirements of particular feature? first field of result is binary answer (true=yes), second is verbalized answer "why not" in case of not

Implements SWRS::IFeatureImpl.

Reimplemented in SWRS::EdgeImpl.

Member Data Documentation

ExcludedHindranceVector SWRS::FeatureImpl::exc_hindrances

hindrances, that CAN'T be taken with this particular feature

The documentation for this class was generated from the following files: