#include <shapeinf.h>
Collaboration diagram for Armor_info:
Public Member Functions | |
Armor_info () | |
int | read (std::istream &mfile) |
void | write (int shapenum, std::ostream &mfile) |
unsigned char | get_prot () const |
void | set_prot (unsigned char p) |
unsigned char | get_immune () const |
void | set_immune (unsigned char i) |
Private Attributes | |
unsigned char | prot |
unsigned char | immune |
Friends | |
class | Shape_info |
Definition at line 192 of file shapeinf.h.
Armor_info::Armor_info | ( | ) | [inline] |
Definition at line 198 of file shapeinf.h.
int Armor_info::read | ( | std::istream & | mfile | ) |
Definition at line 128 of file shapeinf.cc.
References Read2(), and ShapeID::shapenum.
Here is the call graph for this function:
void Armor_info::write | ( | int | shapenum, | |
std::ostream & | mfile | |||
) |
Definition at line 254 of file shapewrite.cc.
References Write2(), and Write4().
Here is the call graph for this function:
unsigned char Armor_info::get_prot | ( | ) | const [inline] |
void Armor_info::set_prot | ( | unsigned char | p | ) | [inline] |
Definition at line 204 of file shapeinf.h.
References prot.
Referenced by ExultStudio::save_shape_notebook().
unsigned char Armor_info::get_immune | ( | ) | const [inline] |
void Armor_info::set_immune | ( | unsigned char | i | ) | [inline] |
Definition at line 208 of file shapeinf.h.
References immune.
Referenced by ExultStudio::save_shape_notebook().
friend class Shape_info [friend] |
Definition at line 197 of file shapeinf.h.
unsigned char Armor_info::prot [private] |
Definition at line 194 of file shapeinf.h.
Referenced by Shape_info::get_armor(), get_prot(), and set_prot().
unsigned char Armor_info::immune [private] |