Package zombie.inventory
Class RecipeManager
java.lang.Object
zombie.inventory.RecipeManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
DoesUseItemUp
(String itemToUse, Recipe recipe) static boolean
DoesWipeUseDelta
(String itemToUse, String itemToMake) static ArrayList<EvolvedRecipe>
static ArrayList<InventoryItem>
getAvailableItemsAll
(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) static ArrayList<InventoryItem>
getAvailableItemsNeeded
(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) static Recipe
getDismantleRecipeFor
(String item) static ArrayList<EvolvedRecipe>
getEvolvedRecipe
(InventoryItem baseItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers, boolean need1ingredient) static int
static InventoryItem
GetMovableRecipeTool
(boolean isPrimary, Recipe recipe, InventoryItem selectedItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers) static int
getNumberOfTimesRecipeCanBeDone
(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem) static ArrayList<InventoryItem>
getSourceItemsAll
(Recipe recipe, int sourceIndex, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) static ArrayList<InventoryItem>
getSourceItemsNeeded
(Recipe recipe, int sourceIndex, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) getUniqueRecipeItems
(InventoryItem item, IsoGameCharacter chr, ArrayList<ItemContainer> containers) static boolean
HasAllRequiredItems
(Recipe recipe, IsoGameCharacter chr, InventoryItem selectedItem, ArrayList<ItemContainer> containers) static boolean
hasHeat
(Recipe recipe, InventoryItem item, ArrayList<ItemContainer> containers, IsoGameCharacter chr) static boolean
IsItemDestroyed
(String itemToUse, Recipe recipe) static boolean
IsRecipeValid
(Recipe recipe, IsoGameCharacter chr, InventoryItem item, ArrayList<ItemContainer> containers) static void
Loaded()
static void
static InventoryItem
PerformMakeItem
(Recipe recipe, InventoryItem selectedItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers) static float
UseAmount
(String sourceFullType, Recipe recipe, IsoGameCharacter chr)
-
Constructor Details
-
RecipeManager
public RecipeManager()
-
-
Method Details
-
Loaded
public static void Loaded() -
LoadedAfterLua
public static void LoadedAfterLua() -
DoesWipeUseDelta
-
getKnownRecipesNumber
-
DoesUseItemUp
-
IsItemDestroyed
-
UseAmount
-
getUniqueRecipeItems
public static ArrayList<Recipe> getUniqueRecipeItems(InventoryItem item, IsoGameCharacter chr, ArrayList<ItemContainer> containers) -
IsRecipeValid
public static boolean IsRecipeValid(Recipe recipe, IsoGameCharacter chr, InventoryItem item, ArrayList<ItemContainer> containers) -
HasAllRequiredItems
public static boolean HasAllRequiredItems(Recipe recipe, IsoGameCharacter chr, InventoryItem selectedItem, ArrayList<ItemContainer> containers) -
hasHeat
public static boolean hasHeat(Recipe recipe, InventoryItem item, ArrayList<ItemContainer> containers, IsoGameCharacter chr) -
getAvailableItemsAll
public static ArrayList<InventoryItem> getAvailableItemsAll(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) -
getAvailableItemsNeeded
public static ArrayList<InventoryItem> getAvailableItemsNeeded(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) -
getSourceItemsAll
public static ArrayList<InventoryItem> getSourceItemsAll(Recipe recipe, int sourceIndex, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) -
getSourceItemsNeeded
public static ArrayList<InventoryItem> getSourceItemsNeeded(Recipe recipe, int sourceIndex, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) -
getNumberOfTimesRecipeCanBeDone
public static int getNumberOfTimesRecipeCanBeDone(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem) -
GetMovableRecipeTool
public static InventoryItem GetMovableRecipeTool(boolean isPrimary, Recipe recipe, InventoryItem selectedItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers) -
PerformMakeItem
public static InventoryItem PerformMakeItem(Recipe recipe, InventoryItem selectedItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers) -
getAllEvolvedRecipes
-
getEvolvedRecipe
public static ArrayList<EvolvedRecipe> getEvolvedRecipe(InventoryItem baseItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers, boolean need1ingredient) -
getDismantleRecipeFor
-