Monster_info Class Reference

#include <monstinf.h>

Collaboration diagram for Monster_info:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Flags {
  fly = 0, swim = 1, walk = 2, ethereal = 3,
  no_body = 4
}

Public Member Functions

 Monster_info ()
int read (std::istream &mfile)
void write (int shapenum, std::ostream &mfile)
bool splits () const
void set_splits (bool tf)
bool cant_die () const
void set_cant_die (bool tf)
bool cant_yell () const
void set_cant_yell (bool tf)
bool cant_bleed () const
void set_cant_bleed (bool tf)
bool poison_safe () const
void set_poison_safe (bool tf)
unsigned char get_vulnerable () const
void set_vulnerable (unsigned char v)
unsigned char get_immune () const
void set_immune (unsigned char v)
unsigned char get_flags () const
void set_flags (unsigned char f)
bool has_no_body () const
int get_strength () const
int get_dexterity () const
int get_intelligence () const
int get_alignment () const
void set_alignment (int a)
int get_combat () const
int get_armor () const
int get_weapon () const
int get_reach () const
void set_stats (int str, int dex, int intel, int cmb, int armour, int wpn, int rch)
int get_equip_offset () const
void set_equip_offset (int o)

Static Public Member Functions

static const Monster_infoget_default ()
static void set_equip (Equip_record *eq, int cnt)
static int get_equip_cnt ()
static Equip_recordget_equip (int i)

Private Attributes

unsigned char strength
unsigned char dexterity
unsigned char intelligence
unsigned char alignment
unsigned char combat
unsigned char armor
unsigned char weapon
unsigned char reach
unsigned char flags
unsigned char vulnerable
unsigned char immune
unsigned char equip_offset
bool m_splits
bool m_cant_die
bool m_cant_yell
bool m_cant_bleed
bool m_poison_safe

Static Private Attributes

static Equip_recordequip
static int equip_cnt
static Monster_info default_info

Friends

class Monster_actor

Detailed Description

Definition at line 82 of file monstinf.h.


Member Enumeration Documentation

enum Monster_info::Flags

Enumerator:
fly 
swim 
walk 
ethereal 
no_body 

Definition at line 153 of file monstinf.h.


Constructor & Destructor Documentation

Monster_info::Monster_info (  )  [inline]

Definition at line 108 of file monstinf.h.


Member Function Documentation

int Monster_info::read ( std::istream &  mfile  ) 

void Monster_info::write ( int  shapenum,
std::ostream &  mfile 
)

Definition at line 275 of file shapewrite.cc.

References Write2().

Here is the call graph for this function:

const Monster_info * Monster_info::get_default (  )  [static]

Definition at line 89 of file monstinf.cc.

References strength.

Referenced by Monster_actor::create().

static void Monster_info::set_equip ( Equip_record eq,
int  cnt 
) [inline, static]

Definition at line 114 of file monstinf.h.

References equip, and equip_cnt.

Referenced by Shapes_vga_file::read_info().

static int Monster_info::get_equip_cnt (  )  [inline, static]

Definition at line 119 of file monstinf.h.

References equip_cnt.

Referenced by ExultStudio::open_equip_window(), and Shapes_vga_file::write_info().

static Equip_record& Monster_info::get_equip ( int  i  )  [inline, static]

Definition at line 121 of file monstinf.h.

References equip, and equip_cnt.

Referenced by ExultStudio::init_equip_window(), ExultStudio::save_equip_window(), and Shapes_vga_file::write_info().

bool Monster_info::splits (  )  const [inline]

Definition at line 123 of file monstinf.h.

References m_splits.

Referenced by Actor::figure_hit_points().

void Monster_info::set_splits ( bool  tf  )  [inline]

Definition at line 125 of file monstinf.h.

References m_splits.

Referenced by ExultStudio::save_shape_notebook().

bool Monster_info::cant_die (  )  const [inline]

Definition at line 127 of file monstinf.h.

References m_cant_die.

Referenced by Actor::figure_hit_points(), Actor::reduce_health(), and Usecode_internal::UI_get_item_flag().

void Monster_info::set_cant_die ( bool  tf  )  [inline]

Definition at line 129 of file monstinf.h.

References m_cant_die.

Referenced by ExultStudio::save_shape_notebook().

bool Monster_info::cant_yell (  )  const [inline]

Definition at line 131 of file monstinf.h.

References m_cant_yell.

Referenced by Pace_schedule::now_what(), and Actor::reduce_health().

void Monster_info::set_cant_yell ( bool  tf  )  [inline]

Definition at line 133 of file monstinf.h.

References m_cant_yell.

Referenced by ExultStudio::save_shape_notebook().

bool Monster_info::cant_bleed (  )  const [inline]

Definition at line 135 of file monstinf.h.

References m_cant_bleed.

Referenced by Actor::reduce_health().

void Monster_info::set_cant_bleed ( bool  tf  )  [inline]

Definition at line 137 of file monstinf.h.

References m_cant_bleed.

Referenced by ExultStudio::save_shape_notebook().

bool Monster_info::poison_safe (  )  const [inline]

Definition at line 139 of file monstinf.h.

References m_poison_safe.

Referenced by Actor::figure_hit_points(), and Actor::get_tile_info().

void Monster_info::set_poison_safe ( bool  tf  )  [inline]

Definition at line 141 of file monstinf.h.

References m_poison_safe.

Referenced by ExultStudio::save_shape_notebook().

unsigned char Monster_info::get_vulnerable (  )  const [inline]

Definition at line 145 of file monstinf.h.

References vulnerable.

void Monster_info::set_vulnerable ( unsigned char  v  )  [inline]

Definition at line 147 of file monstinf.h.

References vulnerable.

Referenced by ExultStudio::save_shape_notebook().

unsigned char Monster_info::get_immune (  )  const [inline]

Definition at line 149 of file monstinf.h.

References immune.

void Monster_info::set_immune ( unsigned char  v  )  [inline]

Definition at line 151 of file monstinf.h.

References immune.

Referenced by ExultStudio::save_shape_notebook().

unsigned char Monster_info::get_flags (  )  const [inline]

Definition at line 165 of file monstinf.h.

References flags.

void Monster_info::set_flags ( unsigned char  f  )  [inline]

Definition at line 167 of file monstinf.h.

References flags.

Referenced by ExultStudio::save_shape_notebook().

bool Monster_info::has_no_body (  )  const [inline]

Definition at line 169 of file monstinf.h.

References flags, and no_body.

Referenced by Actor::die().

int Monster_info::get_strength (  )  const [inline]

Definition at line 171 of file monstinf.h.

References strength.

int Monster_info::get_dexterity (  )  const [inline]

Definition at line 173 of file monstinf.h.

References dexterity.

int Monster_info::get_intelligence (  )  const [inline]

Definition at line 175 of file monstinf.h.

References intelligence.

int Monster_info::get_alignment (  )  const [inline]

Definition at line 177 of file monstinf.h.

References alignment.

void Monster_info::set_alignment ( int  a  )  [inline]

Definition at line 179 of file monstinf.h.

References alignment.

Referenced by ExultStudio::save_shape_notebook().

int Monster_info::get_combat (  )  const [inline]

Definition at line 181 of file monstinf.h.

References combat.

int Monster_info::get_armor (  )  const [inline]

Definition at line 183 of file monstinf.h.

References armor.

int Monster_info::get_weapon (  )  const [inline]

Definition at line 185 of file monstinf.h.

References weapon.

int Monster_info::get_reach (  )  const [inline]

Definition at line 187 of file monstinf.h.

References reach.

void Monster_info::set_stats ( int  str,
int  dex,
int  intel,
int  cmb,
int  armour,
int  wpn,
int  rch 
)

Definition at line 113 of file monstinf.cc.

Referenced by ExultStudio::save_shape_notebook().

int Monster_info::get_equip_offset (  )  const [inline]

Definition at line 191 of file monstinf.h.

References equip_offset.

void Monster_info::set_equip_offset ( int  o  )  [inline]

Definition at line 193 of file monstinf.h.

References equip_offset.

Referenced by ExultStudio::save_shape_notebook().


Friends And Related Function Documentation

friend class Monster_actor [friend]

Definition at line 107 of file monstinf.h.


Member Data Documentation

Equip_record * Monster_info::equip [static, private]

Definition at line 84 of file monstinf.h.

Referenced by Monster_actor::create(), get_equip(), and set_equip().

int Monster_info::equip_cnt [static, private]

Definition at line 85 of file monstinf.h.

Referenced by Monster_actor::create(), get_equip(), get_equip_cnt(), and set_equip().

Monster_info Monster_info::default_info [static, private]

Definition at line 86 of file monstinf.h.

unsigned char Monster_info::strength [private]

Definition at line 87 of file monstinf.h.

Referenced by Monster_actor::create(), get_default(), and get_strength().

unsigned char Monster_info::dexterity [private]

Definition at line 88 of file monstinf.h.

Referenced by Monster_actor::create(), and get_dexterity().

unsigned char Monster_info::intelligence [private]

Definition at line 89 of file monstinf.h.

Referenced by Monster_actor::create(), and get_intelligence().

unsigned char Monster_info::alignment [private]

Definition at line 90 of file monstinf.h.

Referenced by Monster_actor::create(), get_alignment(), and set_alignment().

unsigned char Monster_info::combat [private]

Definition at line 91 of file monstinf.h.

Referenced by Monster_actor::create(), and get_combat().

unsigned char Monster_info::armor [private]

Definition at line 92 of file monstinf.h.

Referenced by get_armor(), and Monster_actor::get_armor_points().

unsigned char Monster_info::weapon [private]

Definition at line 93 of file monstinf.h.

Referenced by get_weapon(), and Monster_actor::get_weapon().

unsigned char Monster_info::reach [private]

Definition at line 94 of file monstinf.h.

Referenced by get_reach().

unsigned char Monster_info::flags [private]

Definition at line 95 of file monstinf.h.

Referenced by Monster_actor::create(), get_flags(), has_no_body(), and set_flags().

unsigned char Monster_info::vulnerable [private]

Definition at line 98 of file monstinf.h.

Referenced by get_vulnerable(), and set_vulnerable().

unsigned char Monster_info::immune [private]

Definition at line 98 of file monstinf.h.

Referenced by get_immune(), and set_immune().

unsigned char Monster_info::equip_offset [private]

Definition at line 99 of file monstinf.h.

Referenced by Monster_actor::create(), get_equip_offset(), and set_equip_offset().

bool Monster_info::m_splits [private]

Definition at line 101 of file monstinf.h.

Referenced by set_splits(), and splits().

bool Monster_info::m_cant_die [private]

Definition at line 102 of file monstinf.h.

Referenced by cant_die(), and set_cant_die().

bool Monster_info::m_cant_yell [private]

Definition at line 103 of file monstinf.h.

Referenced by cant_yell(), and set_cant_yell().

bool Monster_info::m_cant_bleed [private]

Definition at line 104 of file monstinf.h.

Referenced by cant_bleed(), and set_cant_bleed().

bool Monster_info::m_poison_safe [private]

Definition at line 105 of file monstinf.h.

Referenced by poison_safe(), and set_poison_safe().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:58:25 2007 for ExultEngine by  doxygen 1.5.1