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 class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
int
float
boolean
static 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 eventboolean
boolean
void
fillWithLoot
(Enemy enemy) Вызывается при спавнеforceFillWithLoot
(Enemy enemy) float
int
getLootSlots
(MinerType minerType) getOrCreateSourceMinedItems
(int x, int y) float
int
getSourceMinedItems
(int x, int y) float
getTimeToRewardingAds
(boolean withGlobalDelay) boolean
boolean
static void
boolean
Нужно ли учитывать время выполнения update() в Debugvoid
void
setup()
Произвести начальную настройку системы.void
update
(float deltaTime) void
void
Methods inherited from class com.prineside.tdi2.GameSystem
dispose, getFastStateHash, postSetup, postStateRestore
Methods 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:
write
in interfaceKryoSerializable
- Overrides:
write
in classRegistrable
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classRegistrable
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
main
-
setup
public void setup()Description copied from class:GameSystem
Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
setup
in classGameSystem
-
getActiveSecondsPlayed
public float getActiveSecondsPlayed() -
update
public void update(float deltaTime) - Overrides:
update
in 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:
profileUpdate
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-