unit Class Reference

#include <unit.h>

List of all members.

Public Member Functions

 unit ()
const string getName () const
void setName (const string v)
const string getDescription () const
void setDescription (const string v)
const int getSize () const
void setSize (const int v)
class action_levelgetSpecials (const int v)
map< int, class
action_level > & 
listSpecials ()
void setSpecials (class action_level &v)
void delSpecials (const int v)
const bool isSpecials (const int v) const
class materialgetWeapons (const string v)
list< class material > & listWeapons ()
void setWeapons (class material &v)
void delWeapons (const string v)
const bool isWeapons (const string v) const
class background_levelgetBackground (const string v)
list< class
background_level > & 
listBackground ()
void setBackground (class background_level &v)
void delBackground (const string v)
const bool isBackground (const string v) const
class culture_partgetCulture (const string v)
map< string, class
culture_part > & 
listCulture ()
void setCulture (class culture_part &v)
void delCulture (const string v)
const bool isCulture (const string v) const
class skill_levelgetSkills (const string v)
map< string, class
skill_level > & 
listSkills ()
void setSkills (class skill_level &v)
void delSkills (const string v)
const bool isSkills (const string v) const
class stat_amountgetStats (const string v)
map< string, class
stat_amount > & 
listStats ()
void setStats (class stat_amount &v)
void delStats (const string v)
const bool isStats (const string v) const
void save (class channel &ch)
void load (class channel &ch)
void xml (ofstream &f, int l=0, int r=0)
 unit ()
const string getName () const
void setName (const string v)
const string getDescription () const
void setDescription (const string v)
const int getSize () const
void setSize (const int v)
class action_levelgetSpecials (const int v)
map< int, class
action_level > & 
listSpecials ()
void setSpecials (class action_level &v)
void delSpecials (const int v)
const bool isSpecials (const int v) const
class materialgetWeapons (const string v)
list< class material > & listWeapons ()
void setWeapons (class material &v)
void delWeapons (const string v)
const bool isWeapons (const string v) const
class background_levelgetBackground (const string v)
list< class
background_level > & 
listBackground ()
void setBackground (class background_level &v)
void delBackground (const string v)
const bool isBackground (const string v) const
class culture_partgetCulture (const string v)
map< string, class
culture_part > & 
listCulture ()
void setCulture (class culture_part &v)
void delCulture (const string v)
const bool isCulture (const string v) const
class skill_levelgetSkills (const string v)
map< string, class
skill_level > & 
listSkills ()
void setSkills (class skill_level &v)
void delSkills (const string v)
const bool isSkills (const string v) const
class stat_amountgetStats (const string v)
map< string, class
stat_amount > & 
listStats ()
void setStats (class stat_amount &v)
void delStats (const string v)
const bool isStats (const string v) const
void save (class channel &ch)
void load (class channel &ch)
void xml (ofstream &f, int l=0, int r=0)

Public Attributes

int dir
bool male
bool female
int moving
int melee
int ranged
int defend
int die
int idle
int fmoving
int fmelee
int franged
int fdefend
int fdie
int fidle


Constructor & Destructor Documentation

unit::unit (  ) 

unit::unit (  ) 


Member Function Documentation

const string unit::getName (  )  const

void unit::setName ( const string  v  ) 

const string unit::getDescription (  )  const

void unit::setDescription ( const string  v  ) 

const int unit::getSize (  )  const

void unit::setSize ( const int  v  ) 

class action_level & unit::getSpecials ( const int  v  ) 

map< int, class action_level > & unit::listSpecials (  ) 

void unit::setSpecials ( class action_level v  ) 

void unit::delSpecials ( const int  v  ) 

const bool unit::isSpecials ( const int  v  )  const

class material & unit::getWeapons ( const string  v  ) 

list< class material > & unit::listWeapons (  ) 

void unit::setWeapons ( class material v  ) 

void unit::delWeapons ( const string  v  ) 

const bool unit::isWeapons ( const string  v  )  const

class background_level & unit::getBackground ( const string  v  ) 

list< class background_level > & unit::listBackground (  ) 

void unit::setBackground ( class background_level v  ) 

void unit::delBackground ( const string  v  ) 

const bool unit::isBackground ( const string  v  )  const

class culture_part & unit::getCulture ( const string  v  ) 

map< string, class culture_part > & unit::listCulture (  ) 

void unit::setCulture ( class culture_part v  ) 

void unit::delCulture ( const string  v  ) 

const bool unit::isCulture ( const string  v  )  const

class skill_level & unit::getSkills ( const string  v  ) 

map< string, class skill_level > & unit::listSkills (  ) 

void unit::setSkills ( class skill_level v  ) 

void unit::delSkills ( const string  v  ) 

const bool unit::isSkills ( const string  v  )  const

class stat_amount & unit::getStats ( const string  v  ) 

map< string, class stat_amount > & unit::listStats (  ) 

void unit::setStats ( class stat_amount v  ) 

void unit::delStats ( const string  v  ) 

const bool unit::isStats ( const string  v  )  const

void unit::save ( class channel ch  ) 

void unit::load ( class channel ch  ) 

void unit::xml ( ofstream &  f,
int  l = 0,
int  r = 0 
)

const string unit::getName (  )  const

void unit::setName ( const string  v  ) 

const string unit::getDescription (  )  const

void unit::setDescription ( const string  v  ) 

const int unit::getSize (  )  const

void unit::setSize ( const int  v  ) 

class action_level& unit::getSpecials ( const int  v  ) 

map<int,class action_level>& unit::listSpecials (  ) 

void unit::setSpecials ( class action_level v  ) 

void unit::delSpecials ( const int  v  ) 

const bool unit::isSpecials ( const int  v  )  const

class material& unit::getWeapons ( const string  v  ) 

list<class material>& unit::listWeapons (  ) 

void unit::setWeapons ( class material v  ) 

void unit::delWeapons ( const string  v  ) 

const bool unit::isWeapons ( const string  v  )  const

class background_level& unit::getBackground ( const string  v  ) 

list<class background_level>& unit::listBackground (  ) 

void unit::setBackground ( class background_level v  ) 

void unit::delBackground ( const string  v  ) 

const bool unit::isBackground ( const string  v  )  const

class culture_part& unit::getCulture ( const string  v  ) 

map<string,class culture_part>& unit::listCulture (  ) 

void unit::setCulture ( class culture_part v  ) 

void unit::delCulture ( const string  v  ) 

const bool unit::isCulture ( const string  v  )  const

class skill_level& unit::getSkills ( const string  v  ) 

map<string,class skill_level>& unit::listSkills (  ) 

void unit::setSkills ( class skill_level v  ) 

void unit::delSkills ( const string  v  ) 

const bool unit::isSkills ( const string  v  )  const

class stat_amount& unit::getStats ( const string  v  ) 

map<string,class stat_amount>& unit::listStats (  ) 

void unit::setStats ( class stat_amount v  ) 

void unit::delStats ( const string  v  ) 

const bool unit::isStats ( const string  v  )  const

void unit::save ( class channel ch  ) 

void unit::load ( class channel ch  ) 

void unit::xml ( ofstream &  f,
int  l = 0,
int  r = 0 
)


Member Data Documentation

int unit::dir

bool unit::male

bool unit::female

int unit::moving

int unit::melee

int unit::ranged

int unit::defend

int unit::die

int unit::idle

int unit::fmoving

int unit::fmelee

int unit::franged

int unit::fdefend

int unit::fdie

int unit::fidle


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

Generated on Tue Jan 1 17:30:02 2008 for unit Class Reference by  doxygen   Visit the project page on SourceForge.net Logo