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

#include <defs.h>

Public Member Functions

bool operator== (const EquipType &rhs) const
 

Public Attributes

float weight
 
Tile sprite
 
std::string name
 
std::string description
 
int rarity
 
int body_part
 
int type
 
int hit [3]
 
float dam [3]
 
bool use
 
int size
 

Detailed Description

The definition for the different types of equipment. This defines the various attributes of equipment, and members of this struct are used to construct equipment items.

See also
Equipment

Member Function Documentation

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

Comparitor operator for equipment.

Member Data Documentation

int EquipType::body_part

The body part which the equipment goes on. The indexes correspond as follows: 0 - head 1 - torso 2 - legs 3 - feet 4 - arms 5 - hands 6 - weapon

Todo:
Put this in an enum.
float EquipType::dam[3]

How much the armor protects against damage. Each value corresponds to a different type of weapon. This will be some a percentage of damage reduction.

std::string EquipType::description

A description of the item.

int EquipType::hit[3]

How much the armor protects against getting hit. Each value corresponds to a differen type of weapon. This will be some number. Each weapon will have a threshold. If the hit number is higher than the threshold, then the weapon will be completely blocked. Hmm...that seems a bit OP. Maybe I should change that.

std::string EquipType::name

The name of the item.

int EquipType::rarity

How likely it is tha the item will appear.

int EquipType::size

The size of the item.

Tile EquipType::sprite

The tile which will be used to graphically represent the item.

int EquipType::type

The type of equipment. The different types of equipment are as follows: 0 - light 1 - medium 3 - heavy. Each type of armor has a type ofweapon that will deal more damage against it.

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

True if the item has a use beyond increasing armor.

float EquipType::weight

How much the item weighs.


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