Package com.prineside.tdi2.systems
Class LootSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.LootSystem
- All Implemented Interfaces:
 com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.KryoSerializable
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic final class - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatfloatbooleancom.badlogic.gdx.math.RandomXS128static final int[]Fields inherited from class com.prineside.tdi2.Registrable
S - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidfillWithLoot(Enemy enemy) Вызывается при спавнеforceFillWithLoot(Enemy enemy) intgetLootSlots(MinerType minerType) com.badlogic.gdx.utils.Array<ItemStack>getOrCreateSourceMinedItems(int x, int y) floatintcom.badlogic.gdx.utils.Array<ItemStack>getSourceMinedItems(int x, int y) floatgetTimeToRewardingAds(boolean withGlobalDelay) booleanbooleanstatic voidbooleanНужно ли учитывать время выполнения update() в Debugvoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidsetup()Произвести начальную настройку системы.voidupdate(float deltaTime) voidvoidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.GameSystem
dispose, getFastStateHash, postSetup, postStateRestoreMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered 
- 
Field Details
- 
REWARDING_AD_VIEW_BONUSES
public static final int[] REWARDING_AD_VIEW_BONUSES - 
ENCRYPTED_CASE_GLOBAL_INTERVAL
public static final float ENCRYPTED_CASE_GLOBAL_INTERVAL- See Also:
 
 - 
random
public com.badlogic.gdx.math.RandomXS128 random - 
globalLootDropRateMultiplier
public float globalLootDropRateMultiplier - 
inventoryStatistics
 - 
minersMineOnlyLegendaries
public boolean minersMineOnlyLegendaries - 
listeners
 
 - 
 - 
Constructor Details
- 
LootSystem
public LootSystem() 
 - 
 - 
Method Details
- 
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
 writein interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
 writein classRegistrable
 - 
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
 readin interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
 readin classRegistrable
 - 
affectsGameState
public boolean affectsGameState()- Specified by:
 affectsGameStatein classGameSystem
 - 
main
 - 
setup
public void setup()Description copied from class:GameSystemПроизвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
 setupin classGameSystem
 - 
update
public void update(float deltaTime) - Overrides:
 updatein classGameSystem
 - 
getRewardingAdViews
public int getRewardingAdViews() - 
getTimeToRewardingAds
public float getTimeToRewardingAds(boolean withGlobalDelay) - Returns:
 - -1, если следующего видео не будет
 
 - 
isRewardingAdAvailableInReality
public boolean isRewardingAdAvailableInReality() - 
isRewardingAdAvailableByState
public boolean isRewardingAdAvailableByState() - 
viewRewardingAdAction
public void viewRewardingAdAction() - 
getRewardingAdsLootMultiplier
public float getRewardingAdsLootMultiplier() - 
canGiveEncryptedChests
public boolean canGiveEncryptedChests() - 
forceFillWithLoot
 - 
fillWithLoot
Вызывается при спавне - 
getLootSlots
 - 
getSourceMinedItems
 - 
getOrCreateSourceMinedItems
 - 
profileUpdate
public boolean profileUpdate()Description copied from class:GameSystemНужно ли учитывать время выполнения update() в Debug- Overrides:
 profileUpdatein classGameSystem
 - 
getSystemName
- Specified by:
 getSystemNamein classGameSystem
 
 -