Steam Fort 0.5
Functions

src/recipe.cpp File Reference

#include "recipe.hpp"
#include "main.hpp"
#include "building.hpp"
#include "libtcod.hpp"
#include <iostream>

Functions

int find_recipe (std::string name, int building)
 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.

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