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

interface of a character More...

#include <character.hpp>

Inheritance diagram for SWRS::ICharacter:
Inheritance graph
Collaboration diagram for SWRS::ICharacter:
Collaboration graph

Public Member Functions

virtual int GetSkillsPointValue () const =0
 get value in point build system of allocated skills
 
virtual int GetAttributesPointValue () const =0
 get value in point build system of allocated attributes
 
virtual int GetSkillsPointsLeft () const =0
 get amount of points left for attributes
 
virtual int GetAttributesPointsLeft () const =0
 for point build system
 
virtual const TraitVectorGetPossibleTraitVector () const =0
 which traits can be added
 
virtual const FeatureVectorGetPossibleHindranceVector () const =0
 which hindrances can be added
 
virtual const FeatureVectorGetPossibleEdgeVector () const =0
 which edges can be added
 
virtual const FeatureVectorGetPossibleRaceVector () const =0
 which races can be selected
 
virtual const PowerVectorGetPossiblePowerVector () const =0
 what powers are possible
 
virtual int SetMaxWounds (int _w)=0
 set max amount of wounds for character
 
virtual int GrantXP (int XP)=0
 grant XP to a particular character
 
virtual int SetXP (int XP)=0
 set XP value for a character (effects of lowering XP rating are undefined);
 
virtual int GrantTrait (const std::string &id)=0
 add a trait
 
virtual int RevokeTrait (const std::string &id)=0
 take trait away
 
virtual int IncreaseTrait (const std::string &id)=0
 increase trait a one die level
 
virtual int DecreaseTrait (const std::string &id)=0
 decrease trait a one die level
 
virtual int GrantHindrance (const std::string &name)=0
 add hindrance
 
virtual int RevokeHindrance (const std::string &name)=0
 remove hindrance
 
virtual int GrantEdge (const std::string &name)=0
 grant edge
 
virtual int RevokeEdge (const std::string &name)=0
 revoke edge
 
virtual int GrantPower (const std::string &name)=0
 add magical power
 
virtual int RevokePower (const std::string &name)=0
 remove magical power
 
virtual int SetHindranceSeverity (const std::string &name, int severity)=0
 some hindrances can be added as minor or major
 
virtual int PrintCharacterSheet () const =0
 onto stdout
 
virtual const std::string GetCharacterSheet () const =0
 get character summary as a string
 
virtual void SetName (const std::string &n)=0
 set name
 
virtual void SetRace (const std::string &n)=0
 
virtual int GetNumMinorHindrances () const =0
 how many major minor hindrances does the character have
 
virtual int GetNumMajorHindrances () const =0
 how many major major hindrances does the character have
 
virtual int GetEdgePointsLeft () const =0
 how many points are there left for edges
 
virtual bool GetPointLimitEnabled () const =0
 is point limit enabled ? (for editor)
 
virtual void SetPointLimitEnabled (bool pl)=0
 enable point limit
 
virtual int GetPowerAllowanceLeft () const =0
 how many powers are allowed
 
virtual void LockLevel ()=0
 prevent from decreasing characteristics below current level (after rising they may however be decreaset down to current level)
 
virtual void UnlockLevel ()=0
 cancel effects of LockLevel
 
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
 

Detailed Description

interface of a character

Member Function Documentation

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

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 virtualinherited

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 virtualinherited

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 virtualinherited

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 virtualinherited

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 virtualinherited

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.

virtual void SWRS::ICharacter::SetRace ( const std::string &  n)
pure virtual

set race (out of available ones; effects of setting race which doesn't exist in system are undefined)

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


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