Steam Fort 0.5
Public Member Functions | Public Attributes

Item Class Reference

Contains all informations about item. More...

#include <item.hpp>

List of all members.

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.

Detailed Description

Contains all informations about item.


Constructor & Destructor Documentation

Item::Item ( )

Standard class constructor.

Create object and fill some default values.


Member Function Documentation

int Item::additem ( bool  start)

Add item to game.

Parameters:
startDid we start game.
Returns:
Index of new item.
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.

Parameters:
x1X-axis position of object on map
y1Y-axis position of object on map
iindexIndex of item.
startDid we start game.
void Item::useitem ( )

Use item (by mob/building).


Member Data Documentation

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.

Various item data.

std::string Item::description

Description of item.

Did item is designated.

Did item is hidden (invisible on screen)

std::string Item::name

Name of item.

Range for weapon.

Did item is stored.

Did item is used in any task.

Did item block line of sigh.

TCODList<int> Item::types

Types of item.

Did we can move by this item.

int Item::x

X-axis position of item.

int Item::y

Y-axis position of item.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines