#include <monstinf.h>
Collaboration diagram for Monster_info:

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_info * | get_default () |
| static void | set_equip (Equip_record *eq, int cnt) |
| static int | get_equip_cnt () |
| static Equip_record & | get_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_record * | equip |
| static int | equip_cnt |
| static Monster_info | default_info |
Friends | |
| class | Monster_actor |
Definition at line 82 of file monstinf.h.
| enum Monster_info::Flags |
| Monster_info::Monster_info | ( | ) | [inline] |
Definition at line 108 of file monstinf.h.
| 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] |
| 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] |
| 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] |
| 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] |
| int Monster_info::get_dexterity | ( | ) | const [inline] |
| int Monster_info::get_intelligence | ( | ) | const [inline] |
| int Monster_info::get_alignment | ( | ) | const [inline] |
| 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] |
| int Monster_info::get_armor | ( | ) | const [inline] |
| int Monster_info::get_weapon | ( | ) | const [inline] |
| int Monster_info::get_reach | ( | ) | const [inline] |
| void Monster_info::set_stats | ( | int | str, | |
| int | dex, | |||
| int | intel, | |||
| int | cmb, | |||
| int | armour, | |||
| int | wpn, | |||
| int | rch | |||
| ) |
| int Monster_info::get_equip_offset | ( | ) | const [inline] |
| 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().
friend class Monster_actor [friend] |
Definition at line 107 of file monstinf.h.
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] |
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] |
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] |
unsigned char Monster_info::immune [private] |
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] |
bool Monster_info::m_cant_die [private] |
bool Monster_info::m_cant_yell [private] |
bool Monster_info::m_cant_bleed [private] |
bool Monster_info::m_poison_safe [private] |
1.5.1