My Project
 
Loading...
Searching...
No Matches
HeroClass Class Reference

#include <heroclass.h>

Public Types

enum  Type {
  E_WARRIOR , E_MAGE , E_ROGUE , E_HUNTRESS ,
  E_NONE
}
 

Public Member Functions

 HeroClass (const std::string &title)
 
 HeroClass (const HeroClass &cl)
 
void initHero (Hero *hero)
 
std::string title ()
 
Type type () const
 
std::string name ()
 
std::string spritesheet ()
 
void perks (std::vector< std::string > &out)
 
void storeInBundle ()
 
int ordinal ()
 
bool isNull ()
 
void setNull ()
 
bool operator< (const HeroClass &c) const
 
bool operator== (const HeroClass &c) const
 
Badges::Badge masteryBadge ()
 

Static Public Member Functions

static HeroClass restoreInBundle ()
 

Static Public Attributes

static const char * WARRIOR = "lang.warrior"
 
static const char * MAGE = "lang.mage"
 
static const char * ROGUE = "lang.rogue"
 
static const char * HUNTRESS = "lang.huntress"
 

Member Enumeration Documentation

◆ Type

Enumerator
E_WARRIOR 
E_MAGE 
E_ROGUE 
E_HUNTRESS 
E_NONE 

Constructor & Destructor Documentation

◆ HeroClass() [1/2]

HeroClass::HeroClass ( const std::string & title)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HeroClass() [2/2]

HeroClass::HeroClass ( const HeroClass & cl)
Here is the call graph for this function:

Member Function Documentation

◆ initHero()

void HeroClass::initHero ( Hero * hero)
Here is the call graph for this function:

◆ isNull()

bool HeroClass::isNull ( )
inline

◆ masteryBadge()

Badges::Badge HeroClass::masteryBadge ( )
Here is the caller graph for this function:

◆ name()

std::string HeroClass::name ( )
Here is the call graph for this function:

◆ operator<()

bool HeroClass::operator< ( const HeroClass & c) const
inline
Here is the call graph for this function:

◆ operator==()

bool HeroClass::operator== ( const HeroClass & c) const
inline
Here is the call graph for this function:

◆ ordinal()

int HeroClass::ordinal ( )
inline
Here is the caller graph for this function:

◆ perks()

void HeroClass::perks ( std::vector< std::string > & out)
Here is the call graph for this function:

◆ restoreInBundle()

static HeroClass HeroClass::restoreInBundle ( )
static
Here is the call graph for this function:

◆ setNull()

void HeroClass::setNull ( )
inline

◆ spritesheet()

std::string HeroClass::spritesheet ( )
Here is the caller graph for this function:

◆ storeInBundle()

void HeroClass::storeInBundle ( )

◆ title()

std::string HeroClass::title ( )
inline
Here is the caller graph for this function:

◆ type()

Type HeroClass::type ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ HUNTRESS

const char * HeroClass::HUNTRESS = "lang.huntress"
static

◆ MAGE

const char * HeroClass::MAGE = "lang.mage"
static

◆ ROGUE

const char * HeroClass::ROGUE = "lang.rogue"
static

◆ WARRIOR

const char * HeroClass::WARRIOR = "lang.warrior"
static

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