#include <string>
#include "libtcod.hpp"
Go to the source code of this file.
Classes |
class | Recipe |
| Contains all information about recipe. More...
|
Defines |
#define | RESOURCES 4 |
Functions |
int | find_recipe (std::string name, int building=-1) |
| Find selected recipe by name.
|
int | find_recipe2 (std::string name, TCODList< int > *buildings) |
| Find selected recipe by name and buildings.
|
void | add_recipes (int build) |
| Add orders for selected building.
|
Define Documentation
Function Documentation
void add_recipes |
( |
int |
build | ) |
|
Add orders for selected building.
- Parameters:
-
int find_recipe |
( |
std::string |
name, |
|
|
int |
building |
|
) |
| |
Find selected recipe by name.
- Parameters:
-
name | Name of recipe to find |
building | Building to which recipes is assigned. Default -1. |
- Returns:
- Index of recipe or -1.
int find_recipe2 |
( |
std::string |
name, |
|
|
TCODList< int > * |
buildings |
|
) |
| |
Find selected recipe by name and buildings.
- Parameters:
-
name | Name of recipe to find |
buildings | Buildings to which search recipe. |
- Returns:
- Index of recipe or -1.