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

Magical powers; characters may have some of them. More...

#include <power.hpp>

Inheritance diagram for SWRS::Power:
Inheritance graph
Collaboration diagram for SWRS::Power:
Collaboration graph

Public Member Functions

const std::string & GetFlavorText () const
 set flavor test
 
const std::string & GetBaseName () const
 return default name
 
const std::string & GetCustomName () const
 return custom name (if exists) or empty text (if no custom name exists)
 
 Power (const Power &cSource)
 a copy constructor
 
const std::string & GetName () const
 return power name (or custom name)
 

Protected Member Functions

 Power (const PowerRecord *tr)
 protected constructor for generating power type objects in rules system
 
void SetCustomName (std::string s)
 set alternative name
 

Protected Attributes

std::string custom_name
 customized name
 
const PowerRecordpower_record
 proper data on power
 

Friends

class Skill
 
class PowerMap
 

Detailed Description

Magical powers; characters may have some of them.


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