Steam Fort 0.5
|
Contains all informations about item. More...
#include <item.hpp>
Public Member Functions | |
Item () | |
Standard class constructor. | |
int | additem (bool start) |
Add item to game. | |
void | setitem (int x1, int y1, int iindex=-1, bool start=false) |
Show object on screen. | |
void | useitem () |
Use item (by mob/building). | |
void | deleteitem () |
Delete item from game (not useable anymore) | |
Public Attributes | |
std::string | name |
Name of item. | |
TCODList< int > | types |
Types of item. | |
int | x |
X-axis position of item. | |
int | y |
Y-axis position of item. | |
char | ch |
Character to show on screen. | |
TCODColor | color |
Color of character to show on screen. | |
bool | walkable |
Did we can move by this item. | |
bool | transparent |
Did item block line of sigh. | |
bool | taken |
Did item is used in any task. | |
bool | stored |
Did item is stored. | |
bool | hidden |
Did item is hidden (invisible on screen) | |
std::string | description |
Description of item. | |
bool | designated |
Did item is designated. | |
int | data |
Various item data. | |
std::string | damage |
Damage done by item. | |
int | range |
Range for weapon. |
Contains all informations about item.
Item::Item | ( | ) |
Standard class constructor.
Create object and fill some default values.
int Item::additem | ( | bool | start | ) |
Add item to game.
start | Did we start game. |
void Item::deleteitem | ( | ) |
Delete item from game (not useable anymore)
void Item::setitem | ( | int | x1, |
int | y1, | ||
int | iindex = -1 , |
||
bool | start = false |
||
) |
Show object on screen.
x1 | X-axis position of object on map |
y1 | Y-axis position of object on map |
iindex | Index of item. |
start | Did we start game. |
void Item::useitem | ( | ) |
Use item (by mob/building).
char Item::ch |
Character to show on screen.
TCODColor Item::color |
Color of character to show on screen.
std::string Item::damage |
Damage done by item.
int Item::data |
Various item data.
std::string Item::description |
Description of item.
bool Item::designated |
Did item is designated.
bool Item::hidden |
Did item is hidden (invisible on screen)
std::string Item::name |
Name of item.
int Item::range |
Range for weapon.
bool Item::stored |
Did item is stored.
bool Item::taken |
Did item is used in any task.
bool Item::transparent |
Did item block line of sigh.
TCODList<int> Item::types |
Types of item.
bool Item::walkable |
Did we can move by this item.
int Item::x |
X-axis position of item.
int Item::y |
Y-axis position of item.