RecipeBook class

A game's recipes.

Constructors

RecipeBook(List<Recipe> recipes)
recipes, in the order a crafting screen lists them.

Properties

hashCode → int
The hash code for this object.
no setterinherited
recipes → List<Recipe>
Every recipe.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

available(String station) → List<Recipe>
What can be made at station: its recipes and the hand's.
canCraft(Recipe recipe, Inventory inventory) → bool
Whether inventory holds every ingredient of recipe.
craft(Recipe recipe, Inventory inventory) → bool
Uses up the ingredients and adds the result; false (and nothing changed) when something is missing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited