Steam Fort 0.5
Classes | Typedefs | Enumerations | Functions

src/building.hpp File Reference

#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 Documentation

Contains building types.


Enumeration Type Documentation

Contains building types.

Enumerator:
STOREHOUSE 
QUARRY 
COPPERMINE 
TINMINE 
COALMINE 
SMELTER 
WORKSHOP 
FLAG 
ARMORER 
LABORATORY 
IRONMINE 
WEAPONSMITH 
INN 
CARPENTER 
LIBRARY 
LEATHERWORK 

Function Documentation

void buildBuildUI ( )

Build build user interface.

int construct ( int  i,
int  keycode 
)

Construct selected building.

Parameters:
iIndex of building
keycodeLast key pressed code
Returns:
Number of game stage
int find_build ( std::string  name,
int  type,
bool  constructed,
int  x,
int  y 
)

Search for selected building.

Parameters:
nameName of building. Can be empty.
typeType of building. Default -1.
constructedDid search only for constructed buildings. Default true.
xX-axis of point. Default is -1.
yY-axis of point. Default is -1.
Returns:
Index of building or -1.
int find_proto_build ( std::string  name,
int  type 
)

Find proto building by name or type.

Parameters:
nameName of building to find
typeType of building to find
Returns:
Building index in protobuilds
void setVisibleBuild ( bool  visible)

Show/hide information about build.

Parameters:
visibleIf true, show build options, otherwise hide menu.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines