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:
Disposable,KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatintfloatbooleanstatic final int[]Fields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUse this method to add loot and trigger an eventbooleanbooleanvoidfillWithLoot(Enemy enemy) Вызывается при спавнеforceFillWithLoot(Enemy enemy) floatintgetLootSlots(MinerType minerType) getOrCreateSourceMinedItems(int x, int y) floatintgetSourceMinedItems(int x, int y) floatgetTimeToRewardingAds(boolean withGlobalDelay) booleanbooleanstatic voidbooleanНужно ли учитывать время выполнения update() в Debugvoidvoidsetup()Произвести начальную настройку системы.voidupdate(float deltaTime) voidvoidMethods 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
-
globalLootDropRateMultiplier
public float globalLootDropRateMultiplier -
inventoryStatistics
-
flamethrowerUltPapersGiven
public int flamethrowerUltPapersGiven -
minersMineOnlyLegendaries
public boolean minersMineOnlyLegendaries
-
-
Constructor Details
-
LootSystem
public LootSystem()
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classRegistrable
-
read
- Specified by:
readin interfaceKryoSerializable- 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
-
getActiveSecondsPlayed
public float getActiveSecondsPlayed() -
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() -
canGiveChests
public boolean canGiveChests() -
forceFillWithLoot
-
fillWithLoot
Вызывается при спавне -
addLoot
Use this method to add loot and trigger an event- Returns:
- stack the item has been added into or null if event has been canceled
-
getLootSlots
-
getSourceMinedItems
-
getOrCreateSourceMinedItems
-
profileUpdate
public boolean profileUpdate()Description copied from class:GameSystemНужно ли учитывать время выполнения update() в Debug- Overrides:
profileUpdatein classGameSystem
-
getSystemName
- Specified by:
getSystemNamein classGameSystem
-