Steam Fort 0.5
|
#include "utils.hpp"
#include "main.hpp"
#include <map>
#include <stdio.h>
#include "ui.hpp"
#include "item.hpp"
#include "map.hpp"
#include "adventure.hpp"
Functions | |
void | buildItemsUI () |
Build items user interface. | |
void | setVisibleItems (bool visible) |
Show/hide information about items. | |
int | find_proto_obj (std::string name, TCODList< int > *types) |
Find proto object by name or type. | |
int | find_obj (std::string name, int x, int y, TCODList< int > *types, bool hidden) |
Find item by name, position or type. | |
int | find_near_obj (std::string name, int x, int y, int radius, TCODList< int > *types, bool stored, bool hidden) |
Find nearest item from selected position. | |
TCODList< int > | find_all_proto_obj (TCODList< int > types) |
Find all prototypes with selected types. | |
TCODList< int > | find_all_obj (TCODList< int > types) |
Find all objects with selected types. | |
Variables | |
Container * | itemsmenu = new Container(0, 0, 100, 75) |
void buildItemsUI | ( | ) |
Build items user interface.
TCODList<int> find_all_obj | ( | TCODList< int > | types | ) |
Find all objects with selected types.
types | Item types to find. |
TCODList<int> find_all_proto_obj | ( | TCODList< int > | types | ) |
Find all prototypes with selected types.
types | Item types to find. |
int find_near_obj | ( | std::string | name, |
int | x, | ||
int | y, | ||
int | radius, | ||
TCODList< int > * | types, | ||
bool | stored, | ||
bool | hidden | ||
) |
Find nearest item from selected position.
name | Name of item to find. |
x | X-axis of start search position. |
y | Y-axis of start search position. |
radius | Size of radius to search. |
types | Types of item to find. Default empty. |
stored | Check for objects in storehouse? Default is true. |
hidden | Check for visible or not objects? Default is false (only visible). |
int find_obj | ( | std::string | name, |
int | x, | ||
int | y, | ||
TCODList< int > * | types, | ||
bool | hidden | ||
) |
Find item by name, position or type.
name | Name of item to find. If we don't want search by name, put empty string here. |
x | X-axis position of item. Default is -1. |
y | Y-axis position of item. Default is -1. |
types | Types of item to find. |
hidden | Check for hidden items too. |
int find_proto_obj | ( | std::string | name, |
TCODList< int > * | types | ||
) |
Find proto object by name or type.
name | Name of object to find |
types | Types of object to find |
void setVisibleItems | ( | bool | visible | ) |
Show/hide information about items.
visible | If true, show items, otherwise hide menu. |
Container* itemsmenu = new Container(0, 0, 100, 75) |