Steam Fort 0.5
|
#include <string>
#include "libtcod.hpp"
Go to the source code of this file.
Classes | |
class | Building |
Contains all information about building. More... | |
Typedefs | |
typedef enum BuildingTypes | BUILDINGTYPE |
Contains building types. | |
Enumerations | |
enum | BuildingTypes { STOREHOUSE, QUARRY, COPPERMINE, TINMINE, COALMINE, SMELTER, WORKSHOP, FLAG, ARMORER, LABORATORY, IRONMINE, WEAPONSMITH, INN, CARPENTER, LIBRARY, LEATHERWORK } |
Contains building types. More... | |
Functions | |
void | buildBuildUI () |
Build build user interface. | |
void | setVisibleBuild (bool visible) |
Show/hide information about build. | |
int | construct (int i=-1, int keycode=0) |
Construct selected building. | |
int | find_proto_build (std::string name, int type=-1) |
Find proto building by name or type. | |
int | find_build (std::string name, int type=-1, bool constructed=true, int x=-1, int y=-1) |
Search for selected building. |
typedef enum BuildingTypes BUILDINGTYPE |
Contains building types.
enum BuildingTypes |
void buildBuildUI | ( | ) |
Build build user interface.
int construct | ( | int | i, |
int | keycode | ||
) |
Construct selected building.
i | Index of building |
keycode | Last key pressed code |
int find_build | ( | std::string | name, |
int | type, | ||
bool | constructed, | ||
int | x, | ||
int | y | ||
) |
Search for selected building.
name | Name of building. Can be empty. |
type | Type of building. Default -1. |
constructed | Did search only for constructed buildings. Default true. |
x | X-axis of point. Default is -1. |
y | Y-axis of point. Default is -1. |
int find_proto_build | ( | std::string | name, |
int | type | ||
) |
Find proto building by name or type.
name | Name of building to find |
type | Type of building to find |
void setVisibleBuild | ( | bool | visible | ) |
Show/hide information about build.
visible | If true, show build options, otherwise hide menu. |