Ammo_info Class Reference

#include <shapeinf.h>

Collaboration diagram for Ammo_info:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 154 of file shapeinf.h.


Constructor & Destructor Documentation

Ammo_info::Ammo_info (  )  [inline]

Definition at line 164 of file shapeinf.h.


Member Function Documentation

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]

Definition at line 169 of file shapeinf.h.

References family_shape.

Referenced by In_ammo_family().

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]

Definition at line 175 of file shapeinf.h.

References damage_type.

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]

Definition at line 185 of file shapeinf.h.

References m_no_blocking.


Friends And Related Function Documentation

friend class Shapes_vga_file [friend]

Definition at line 163 of file shapeinf.h.


Member Data Documentation

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]

Definition at line 158 of file shapeinf.h.

Referenced by get_damage(), and set_damage().

unsigned char Ammo_info::powers [private]

Definition at line 159 of file shapeinf.h.

Referenced by get_powers(), and set_powers().

unsigned char Ammo_info::damage_type [private]

Definition at line 160 of file shapeinf.h.

Referenced by get_damage_type(), and set_damage().

bool Ammo_info::m_no_blocking [private]

Definition at line 161 of file shapeinf.h.

Referenced by no_blocking(), and set_no_blocking().


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