Damage Struct Reference

Structure that describes the severity and nature of an attack a being can be hit by. More...

#include <being.hpp>

List of all members.

Public Attributes

unsigned short base
 Base amount of damage.
unsigned short delta
 Additional damage when lucky.
unsigned short cth
 Chance to hit.
unsigned char element
 Elemental damage.
unsigned char type
 Damage type: Physical or magical?
std::list< size_t > usedSkills
 Skills used by source (needed for exp calculation).


Detailed Description

Structure that describes the severity and nature of an attack a being can be hit by.

Definition at line 62 of file being.hpp.


Member Data Documentation

unsigned short Damage::base

Base amount of damage.

Definition at line 64 of file being.hpp.

Referenced by Being::damage(), Monster::perform(), and Character::perform().

unsigned short Damage::delta

Additional damage when lucky.

Definition at line 65 of file being.hpp.

Referenced by Being::damage(), Monster::perform(), and Character::perform().

unsigned short Damage::cth

Chance to hit.

Opposes the evade attribute.

Definition at line 66 of file being.hpp.

Referenced by Being::damage(), Monster::perform(), and Character::perform().

unsigned char Damage::element

Elemental damage.

Definition at line 67 of file being.hpp.

Referenced by Being::damage(), Monster::perform(), and Character::perform().


The documentation for this struct was generated from the following file:

Generated on Sun Apr 26 17:30:46 2009 for TMW Server Collection by  doxygen 1.5.5