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

interface for representing characters - constant (readonly) version More...

#include <character.hpp>

Inheritance diagram for SWRS::IConstCharacter:
Inheritance graph
Collaboration diagram for SWRS::IConstCharacter:
Collaboration graph

Public Member Functions

virtual const TraitVectorGetTraitVector () const =0
 return vector of all traits of character
 
virtual const FeatureVectorGetHindranceVector () const =0
 return vector of all edges of a character
 
virtual const FeatureVectorGetEdgeVector () const =0
 return vector of all edges
 
virtual const PowerVectorGetPowerVector () const =0
 all magical powers
 
virtual int GetMaxWounds () const =0
 
virtual int GetXP () const =0
 Amount of experience points accumulated by a particular character.
 
virtual const TraitGetTrait (unsigned int id) const =0
 
virtual const TraitGetTrait (const std::string &name) const =0
 
virtual int GetCharisma () const =0
 
virtual int GetPace () const =0
 how fast does the character move
 
virtual int GetParry () const =0
 defensive characteristic dependent of "Fighting" trait
 
virtual int GetToughness () const =0
 defensive characteristic dependent of "Vigor" trait
 
virtual int GetPowerPoints () const =0
 for point build system
 
virtual int GetPowerAllowance () const =0
 for point build system - how many powers can be chosen
 
virtual const HindranceGetHindrance (const std::string &name) const =0
 return pointer to hindrance object of a particular name
 
virtual const EdgeGetEdge (const std::string &name) const =0
 return pointer to edge object of a particular name
 
virtual const PowerGetPower (const std::string &name) const =0
 return pointer to magical power object of a particular name
 
virtual const std::string & GetName () const =0
 return individual name of a character
 
virtual const std::string & GetRace () const =0
 return race of a particular character (default is human)
 
virtual int GetSkillsPoints () const =0
 how many points can be allocated to skills
 
virtual int GetAttributesPoints () const =0
 how many points can be allocated to attributes
 
virtual int GetEdgesPoints () const =0
 how many points can be allocated to edges
 
virtual int GetRequiredSkillsPerAttribute (const std::string &attr_name) const =0
 
virtual int GetTraitLevelModifier (const std::string &attr_name) const =0
 
virtual ~IConstCharacter ()
 virtual destructor for a polymorphic class
 

Detailed Description

interface for representing characters - constant (readonly) version

Member Function Documentation

virtual int SWRS::IConstCharacter::GetCharisma ( ) const
pure virtual

get charisma of a particular character. default is 0 but can be altered by edges

Implemented in SWRS::Character, SWRS::CharacterImpl, and SWRS::Feature.

virtual int SWRS::IConstCharacter::GetMaxWounds ( ) const
pure virtual

maximum amount of wounds character can suffer before being assumed as dead (default for savage worlds rules system is 3 but can be defined as more)

Implemented in SWRS::Character, SWRS::CharacterImpl, and SWRS::Feature.

virtual int SWRS::IConstCharacter::GetRequiredSkillsPerAttribute ( const std::string &  attr_name) const
pure virtual

some hindrances/edges require player to spend certain amount of skill points onto skills linked to particular attributes (i.e. Elderly grants 5 skill points that MUST be spent on skills linked to Smaers)

Implemented in SWRS::Character, SWRS::CharacterImpl, and SWRS::Feature.

virtual const Trait* SWRS::IConstCharacter::GetTrait ( unsigned int  id) const
pure virtual

return pointer to trait object of given trait ID (0 is returned if character has no such trait)

Implemented in SWRS::Character, SWRS::CharacterImpl, and SWRS::Feature.

virtual const Trait* SWRS::IConstCharacter::GetTrait ( const std::string &  name) const
pure virtual

return pointer to trait object of given trait name (0 is returned if character has no such trait)

Implemented in SWRS::Character, SWRS::CharacterImpl, and SWRS::Feature.

virtual int SWRS::IConstCharacter::GetTraitLevelModifier ( const std::string &  attr_name) const
pure virtual

some hindrances decrease particular attributes. I.e. elderly decreases Strength and Vigor by one;

  • this decrease can be also an effect of powers (i.e. debuff spells);

Implemented in SWRS::Character, SWRS::CharacterImpl, and SWRS::Feature.


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