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

#include <defs.h>

Public Member Functions

bool operator== (const ConsumableType &rhs) const
 

Public Attributes

float weight
 
Tile sprite
 
std::string name
 
std::string description
 
bool use
 
int rarity
 
int stat
 
int value
 
int type
 
int size
 

Detailed Description

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

See also
Consumable

Member Function Documentation

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

Comparitor for consumables.

Member Data Documentation

std::string ConsumableType::description

A description of the item.

std::string ConsumableType::name

The name of the item.

int ConsumableType::rarity

How likely it is tha the item will appear.

int ConsumableType::size

The size of the item.

Tile ConsumableType::sprite

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

int ConsumableType::stat

The stat that the item modifies. This corresponds to an index in the character's stats and current_stats array.

See also
Character
STATS
int ConsumableType::type

The type of modification the stat will perform. This corresponds to an enum containing the different types of a consumables.

See also
ConsumableTypes
bool ConsumableType::use

True if the item has a use beyond changing attack.

int ConsumableType::value

How much the stat is being modified by.

float ConsumableType::weight

How much the item weighs.


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