#include <defs.h>
Public Member Functions | |
bool | operator== (const WeaponType &rhs) const |
Public Attributes | |
float | weight |
Tile | sprite |
std::string | name |
std::string | description |
int | rarity |
int | damage |
int | type |
int | range |
bool | use |
int | size |
The definition for the different types of weapon. This defines the various attributes of weapon, and members of this struct are used to construct weapon items.
|
inline |
Comparitor operator for weapon.
int WeaponType::damage |
The amount of damage the weapon will deal when equipped.
std::string WeaponType::description |
A description of the item.
std::string WeaponType::name |
The name of the item.
int WeaponType::range |
How far the weapon can be used.
int WeaponType::rarity |
how likely it is tha the item will appear.
int WeaponType::size |
The size of the item.
Tile WeaponType::sprite |
The tile which will be used to graphically represent the item.
int WeaponType::type |
The type of weapons. The different types of weapons are as follows: 0 - piercing 1 - slashing 3 - bludgeoning. Each type of armor has a type of weapon that will deal more damage against it.
bool WeaponType::use |
True if the item has a use beyond changing attack.
float WeaponType::weight |
How much the item weighs.