Steam Fort 0.5
|
#include <string>
#include <vector>
#include <iostream>
#include "building.hpp"
#include "libtcod.hpp"
#include "main.hpp"
#include "utils.hpp"
#include "gui/gui.hpp"
#include "ui.hpp"
#include <stdio.h>
Functions | |
void | buildBuildUI () |
Build build user interface. | |
void | buildingClb (Widget *w, void *data) |
Start placing construction. | |
void | setVisibleBuild (bool visible) |
Show/hide information about build. | |
int | construct (int i, int keycode) |
Construct selected building. | |
int | find_proto_build (std::string name, int type) |
Find proto building by name or type. | |
int | find_build (std::string name, int type, bool constructed, int x, int y) |
Search for selected building. | |
Variables | |
Container * | buildmenu = new Container(0, 0, 100, 75) |
VBox * | constructmenu = new VBox(75, 2, 1) |
void buildBuildUI | ( | ) |
Build build user interface.
void buildingClb | ( | Widget * | w, |
void * | data | ||
) |
Start placing construction.
w | Unused |
data | Name of building to construct. |
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. |
Container* buildmenu = new Container(0, 0, 100, 75) |
VBox* constructmenu = new VBox(75, 2, 1) |