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 final class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
float
boolean
com.badlogic.gdx.math.RandomXS128
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) com.badlogic.gdx.utils.Array<ItemStack>
getOrCreateSourceMinedItems
(int x, int y) float
int
com.badlogic.gdx.utils.Array<ItemStack>
getSourceMinedItems
(int x, int y) float
getTimeToRewardingAds
(boolean withGlobalDelay) boolean
boolean
static void
boolean
Нужно ли учитывать время выполнения update() в Debugvoid
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
setup()
Произвести начальную настройку системы.void
update
(float deltaTime) void
void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) 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
public com.badlogic.gdx.math.RandomXS128 random -
globalLootDropRateMultiplier
public float globalLootDropRateMultiplier -
inventoryStatistics
-
minersMineOnlyLegendaries
public boolean minersMineOnlyLegendaries
-
-
Constructor Details
-
LootSystem
public LootSystem()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
write
in classRegistrable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
- 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() -
canGiveEncryptedChests
public boolean canGiveEncryptedChests() -
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
-