Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | List of all members
SWRS::IFeatureImpl Class Referenceabstract

interface class for all feature implementations More...

#include <ifeatureimpl.hpp>

Inheritance diagram for SWRS::IFeatureImpl:
Inheritance graph
Collaboration diagram for SWRS::IFeatureImpl:
Collaboration graph

Public Member Functions

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

Detailed Description

interface class for all feature implementations

Member Function Documentation

virtual std::pair<bool,std::string> SWRS::IFeatureImpl::DoesCharacterMeetRequirements ( const ICharacter c) const
pure virtual

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

Implemented in SWRS::FeatureImpl, and SWRS::EdgeImpl.


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