Package com.prineside.tdi2.managers
Class ItemManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.ItemManager
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,Manager
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.utils.Array<CraftRecipe>
static final CaseType[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateItemByRarity
(com.badlogic.gdx.math.RandomXS128 random, RarityType rarity, float rarityQuality, float countablesMultiplier, float resourcesChanceMultiplier, float rarityLootBoostChanceMultiplier, float bitDustChanceMultiplier, float casesChanceMultiplier, float decryptedCasesChance, float caseKeysChanceMultiplier, boolean putTilesIntoPacks, ProgressManager.InventoryStatistics inventoryStatistics) generateItemByRarity
(ItemStack toStack, com.badlogic.gdx.math.RandomXS128 random, RarityType rarity, float rarityQuality, float countablesMultiplier, float resourcesChanceMultiplier, float rarityLootBoostChanceMultiplier, float bitDustChanceMultiplier, float casesChanceMultiplier, float decryptedCasesChance, float caseKeysChanceMultiplier, boolean putTilesIntoPacks, ProgressManager.InventoryStatistics inventoryStatistics) com.badlogic.gdx.utils.Array<CraftRecipe>
getCraftRecipes
(Item item) Item.Factory<? extends Item>
getFactory
(ItemType itemType) getQueuedEncryptedCaseType
(int givenCasesCount) com.badlogic.gdx.graphics.Color
void
setup()
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
clearPools, dispose, postRender, preRender, test
-
Field Details
-
ENCRYPTED_CASES_QUEUE
-
craftRecipes
-
-
Constructor Details
-
ItemManager
public ItemManager()
-
-
Method Details
-
setup
public void setup()Description copied from interface:Manager
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
setup
in interfaceManager
- Overrides:
setup
in classManager.ManagerAdapter
-
getCraftRecipes
-
getCategoryNameAlias
-
getSubcategoryName
-
getSubcategoryIconAlias
-
getSubcategoryColor
-
getQueuedEncryptedCaseType
-
generateItemByRarity
public ItemStack generateItemByRarity(com.badlogic.gdx.math.RandomXS128 random, RarityType rarity, float rarityQuality, float countablesMultiplier, float resourcesChanceMultiplier, float rarityLootBoostChanceMultiplier, float bitDustChanceMultiplier, float casesChanceMultiplier, float decryptedCasesChance, float caseKeysChanceMultiplier, boolean putTilesIntoPacks, ProgressManager.InventoryStatistics inventoryStatistics) -
generateItemByRarity
public ItemStack generateItemByRarity(ItemStack toStack, com.badlogic.gdx.math.RandomXS128 random, RarityType rarity, float rarityQuality, float countablesMultiplier, float resourcesChanceMultiplier, float rarityLootBoostChanceMultiplier, float bitDustChanceMultiplier, float casesChanceMultiplier, float decryptedCasesChance, float caseKeysChanceMultiplier, boolean putTilesIntoPacks, ProgressManager.InventoryStatistics inventoryStatistics) - Parameters:
random
- источник рандомаrarity
- рекость вещиrarityQuality
- качество вещи в рамках своей редкости, от 0 до 1countablesMultiplier
- множитель количества вещей, которые выпадают в стакахresourcesChanceMultiplier
- множитель шанса ресурсов (при 0 ресурсы не будут сыпаться)rarityLootBoostChanceMultiplier
- множитель шанса специальных вещей (при 0 не будут сыпаться)casesChanceMultiplier
- множитель шанса наборов (при 0 не будут сыпаться)decryptedCasesChance
- шанс выпадения открытого набора (0 - никогда, 1 - всегда, 0.5 - примерно половина)putTilesIntoPacks
- тайлы и барьеры выпадут как пакетик с качеством- Returns:
- стек вещей именно такой редкости
-
getFactory
-