class Weapon

Represents a weapon which has a certain amount of damage dice plus a damage type and speed More...

Definition#include <weapon.h>
InheritsInventoryItem
Inherited byMagicWeapon
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

Represents a weapon which has a certain amount of damage dice plus a damage type and speed

Weapon ()

Creates a basic (wimpy) weapon named "Fists"

Weapon (int Speed,int DT,int dice,int sides,int bonus,char *AName,int Weight)

Creates a custom weapon with speed Speed, damage type DT, dice damage dice with sides sides, with a bonus of bonus, named AName and weight Weight

Weapon (const Weapon& model)

Creates a weapon which is a duplicate of model

int getSpeed ()
[const]

Returns the weapon's speed

int getDT ()
[const]

Returns the integer constant representing the damage type

int returnDamage ()
[const virtual]

Rolls the damage dice and returns the value

InventoryType getType ()

Returns the item's type

bool isMagic ()
[const virtual]

Returns the presence or absence of magic in the weapon

int getPluses ()
[const virtual]

Returns the pluses on the weapon.

inline int getPluses ()
[const]

Returns the pluses on the weapon.

inline bool isMagic ()
[const]

Returns the presence or absence of magic in the weapon