Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Classes | Typedefs | Functions | Variables
SWRS Namespace Reference

Savage Worlds rules system (really a flexible rules engine able to implement any SW-dereived rules set) More...

Classes

class  IConstCharacter
 interface for representing characters - constant (readonly) version More...
 
class  ICharacter
 interface of a character More...
 
class  CharacterCondition
 how badly is character wounded/fatigued More...
 
class  Character
 proper representation of a character in rules system More...
 
class  CharacterImpl
 implementation of a character in rules system[pIMPL idiom] More...
 
class  Edge
 interface of edge More...
 
class  EdgeImpl
 implementation of edge More...
 
class  EdgeMap
 map of all edges possible in setting More...
 
class  Feature
 generic class representing common things both for edges and hindrances (and also races) More...
 
class  FeatureImpl
 implementation of feature class More...
 
class  FeatureMap
 map of features possible for a character See SWRS::Feature to know what it is More...
 
class  Hindrance
 class representing character hindrances [interface] More...
 
class  HindranceImpl
 class representing character hindrances [implementations] More...
 
class  HindranceMap
 map of all hindrance possible in setting More...
 
class  IFeatureImpl
 interface class for all feature implementations More...
 
class  IOption
 generic class for optional stat of a character More...
 
class  OptionsMap
 map of options possible for a character More...
 
class  PowerRecord
 record for magical power available in game More...
 
class  Power
 Magical powers; characters may have some of them. More...
 
class  PowerMap
 map of available magical powers More...
 
class  Race
 Character race represented [interface]. More...
 
class  RaceImpl
 Character race represented [implementation. More...
 
class  RaceMap
 map of all races possible in setting More...
 
class  RulesSystem
 Main class (serving also as a factory class for characters) of a savage worlds rules system implementation. More...
 
class  TraitRecord
 dataset associated with particular trait type (class of multiple ownership, one instance per trait per ruleset) More...
 
class  Trait
 generic class for character binary trait - requirements, modifiers etcetera More...
 
class  Attribute
 attributes, or characteristics that do not depend on others More...
 
class  Skill
 skills, traits that depends on atteibutes More...
 
class  TraitMap
 used for associating trait names with their logical representations More...
 

Typedefs

typedef std::vector
< std::auto_ptr< Trait > > 
TraitVector
 vector of traits owned by character
 
typedef std::vector
< std::auto_ptr< Feature > > 
FeatureVector
 vector of features owned by character
 
typedef std::vector
< std::auto_ptr< Power > > 
PowerVector
 vector of powers owned by character
 
typedef std::tr1::shared_ptr
< IFeatureImpl
pFeatureImpl
 pointer to implementation idiom
 
typedef std::map< std::string,
pFeatureImpl
FeaturesMap
 semantic typedef for Featureman implementation
 

Functions

int RollDie (int die, int modifier)
 

Variables

const int HINDRANCE_MAJOR =2
 for major hindrances (GetSeverity)
 
const int HINDRANCE_MINOR =1
 for minor hindrances (GetSeverity)
 
const int HINDRANCE_VARYING =4
 denoting severity of hindrance which can be minor or major
 

Detailed Description

Savage Worlds rules system (really a flexible rules engine able to implement any SW-dereived rules set)

Function Documentation

int SWRS::RollDie ( int  die,
int  modifier 
)

roll a die in SW rules system - exploding dice; recursive implementation; function does not do trait test, it's just a dice roll

Parameters
die4,6,8,10,12, potentially other
modifieris a number added to final result