#include <shapeinf.h>
Collaboration diagram for Ammo_info:

Public Member Functions | |
| Ammo_info () | |
| int | read (std::istream &mfile) |
| void | write (int shapenum, std::ostream &mfile) |
| int | get_family_shape () |
| void | set_family_shape (int f) |
| int | get_damage () |
| int | get_damage_type () const |
| void | set_damage (int dmg, int dtype) |
| unsigned char | get_powers () const |
| void | set_powers (unsigned char p) |
| bool | no_blocking () const |
| void | set_no_blocking (bool tf) |
Private Attributes | |
| int | family_shape |
| unsigned short | type2 |
| unsigned char | damage |
| unsigned char | powers |
| unsigned char | damage_type |
| bool | m_no_blocking |
Friends | |
| class | Shapes_vga_file |
Definition at line 154 of file shapeinf.h.
| Ammo_info::Ammo_info | ( | ) | [inline] |
Definition at line 164 of file shapeinf.h.
| int Ammo_info::read | ( | std::istream & | mfile | ) |
Definition at line 101 of file shapeinf.cc.
References Read2(), and ShapeID::shapenum.
Here is the call graph for this function:

| void Ammo_info::write | ( | int | shapenum, | |
| std::ostream & | mfile | |||
| ) |
Definition at line 231 of file shapewrite.cc.
References Write2().
Here is the call graph for this function:

| int Ammo_info::get_family_shape | ( | ) | [inline] |
| void Ammo_info::set_family_shape | ( | int | f | ) | [inline] |
Definition at line 171 of file shapeinf.h.
References family_shape.
Referenced by ExultStudio::save_shape_notebook().
| int Ammo_info::get_damage | ( | ) | [inline] |
Definition at line 173 of file shapeinf.h.
References damage.
Referenced by Actor::figure_hit_points().
| int Ammo_info::get_damage_type | ( | ) | const [inline] |
| void Ammo_info::set_damage | ( | int | dmg, | |
| int | dtype | |||
| ) | [inline] |
Definition at line 177 of file shapeinf.h.
References damage, and damage_type.
Referenced by ExultStudio::save_shape_notebook().
| unsigned char Ammo_info::get_powers | ( | ) | const [inline] |
Definition at line 179 of file shapeinf.h.
References powers.
Referenced by Actor::figure_hit_points().
| void Ammo_info::set_powers | ( | unsigned char | p | ) | [inline] |
Definition at line 181 of file shapeinf.h.
References powers.
Referenced by ExultStudio::save_shape_notebook().
| bool Ammo_info::no_blocking | ( | ) | const [inline] |
Definition at line 183 of file shapeinf.h.
References m_no_blocking.
Referenced by Projectile_effect::init(), and Combat_schedule::set_weapon().
| void Ammo_info::set_no_blocking | ( | bool | tf | ) | [inline] |
friend class Shapes_vga_file [friend] |
Definition at line 163 of file shapeinf.h.
int Ammo_info::family_shape [private] |
Definition at line 156 of file shapeinf.h.
Referenced by get_family_shape(), and set_family_shape().
unsigned short Ammo_info::type2 [private] |
Definition at line 157 of file shapeinf.h.
unsigned char Ammo_info::damage [private] |
unsigned char Ammo_info::powers [private] |
unsigned char Ammo_info::damage_type [private] |
bool Ammo_info::m_no_blocking [private] |
1.5.1