Roguelike
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Public Attributes | List of all members
WeaponType Struct Reference

#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
 

Detailed Description

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.

See also
Weapon

Member Function Documentation

bool WeaponType::operator== ( const WeaponType rhs) const
inline

Comparitor operator for weapon.

Member Data Documentation

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.

Todo:
Make this do something.
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.

Todo:
Put this in an enum.
bool WeaponType::use

True if the item has a use beyond changing attack.

float WeaponType::weight

How much the item weighs.


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