Steam Fort 0.5
Classes | Defines | Functions

src/recipe.hpp File Reference

#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

#define RESOURCES   4

Function Documentation

void add_recipes ( int  build)

Add orders for selected building.

Parameters:
buildType of building.
int find_recipe ( std::string  name,
int  building 
)

Find selected recipe by name.

Parameters:
nameName of recipe to find
buildingBuilding 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:
nameName of recipe to find
buildingsBuildings to which search recipe.
Returns:
Index of recipe or -1.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines