class Character
|
Represents a generic character. More... |
|
|
Public Members
Protected Members
- int THACO
- char * name
- DepletablePoints HP
- PWeapon weapon
- PArmour armour
- Status status
- virtual bool attackRoll (Character &target)
- virtual void doDamage (Character &target)
- PInventoryList backpack
Detailed Description
Represents a generic character.
Extend to create a specific character.
[protected virtual]Carries out an attack roll against target
[protected virtual]Carries out a damage roll against target
Creates a character with a weapon initialWeap, armour initialArm, and name myName
[virtual]Destroys the Character object. Deletes the weapon, armour, status, and HP members
[virtual]Returns the THACO of the character (THACO with the letter O, not the number 0)
int getAC (int DamageType)
|
[virtual]Returns the AC of the character for damage type DamageType
Returns the name of the character
[virtual]Returns the AC unmodified by damage type
Decreases the current value of the HP by amount. Returns the new HP value
[virtual]Combines an attack roll and a damage roll
Returns whether or not the HP of the character has fallen below zero
[pure virtual]Determines whether a character has a class.
- Author: Daniel Roberge
- Generated: droberge@magebook.localdomain on Mon Jul 3 13:20:08 200.