Package com.prineside.tdi2.systems
Class BonusSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.BonusSystem
- All Implemented Interfaces:
 Disposable,KryoSerializable
Issues GameplayMods as bonuses
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class - 
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanstatic final intstatic final intstatic final Stringstatic final intFields inherited from class com.prineside.tdi2.Registrable
S - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressPoints(int cnt) booleanbooleanbooleancanReRollBonuses(int stageNumber) voiddispose()Releases all resources of this object.intintintgetBonusStage(int stageNum) intintintintintintgetPreparedRandom(int forStage) booleanbooleanvoidvoidvoidvoidvoidselectBonusAction(int bonusIdx) voidsetAutoSelectionOnSingleBonus(boolean autoSelectionOnSingleBonus) voidsetSelectedBonus(int stageNum, int bonusIdx) voidsetStagesConfig(BonusStagesConfig config) Resets stages and starts with stage 1 Existing bonuses won't be affected If seed is set to SEED_TAKE_FROM_LEVEL (-1), it will be copied from the main seed If seed is set to SEED_TAKE_FROM_DAILY_QUEST (-2), it will be generated from the daily quest date or, if absent, will act as SEED_TAKE_FROM_LEVEL Stores a copy of the config and does not mutate the original configvoidsetup()Performs the initial configuration of the system.voidupdate(float deltaTime) voidMethods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, profileUpdateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered 
- 
Field Details
- 
GAMEPLAY_MOD_SOURCE_NAME
- See Also:
 
 - 
MAX_TECHNICAL_BONUS_STAGES
public static final int MAX_TECHNICAL_BONUS_STAGES- See Also:
 
 - 
FORCED_SELECTION_MAX_FRAME_DELAY
public static final int FORCED_SELECTION_MAX_FRAME_DELAY- See Also:
 
 - 
BONUSES_TO_CHOOSE_COUNT
public static final int BONUSES_TO_CHOOSE_COUNT- See Also:
 
 - 
additionalBonusToSelectFrom
public boolean additionalBonusToSelectFrom - 
autoSelectionOnSingleBonus
public boolean autoSelectionOnSingleBonus - 
selectedBonuses
 - 
stageReRolls
 
 - 
 - 
Constructor Details
- 
BonusSystem
public BonusSystem() 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfaceKryoSerializable- Overrides:
 writein classRegistrable
 - 
read
- Specified by:
 readin interfaceKryoSerializable- Overrides:
 readin classRegistrable
 - 
getBonusesToChooseCount
public int getBonusesToChooseCount() - 
isAutoSelectionOnSingleBonus
public boolean isAutoSelectionOnSingleBonus() - 
setAutoSelectionOnSingleBonus
public void setAutoSelectionOnSingleBonus(boolean autoSelectionOnSingleBonus)  - 
getStageToChooseBonusFor
 - 
getMaxBonusStages
public int getMaxBonusStages() - 
getMaxTechnicalBonusStages
public int getMaxTechnicalBonusStages() - 
getAllTimeReRollCount
public int getAllTimeReRollCount() - 
canReRollBonuses
public boolean canReRollBonuses(int stageNumber) - Returns:
 - true if it is possible to re-roll bonuses. Only available for procedural bonuses
 
 - 
getActiveBonusesCount
public int getActiveBonusesCount() - 
isEnabled
public boolean isEnabled()- Returns:
 - true if system is active and BonusStagesConfig is set
 
 - 
addProgressPoints
public void addProgressPoints(int cnt)  - 
affectsGameState
public boolean affectsGameState()- Specified by:
 affectsGameStatein classGameSystem
 - 
setup
public void setup()Description copied from class:GameSystemPerforms the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
 setupin classGameSystem
 - 
setStagesConfig
Resets stages and starts with stage 1 Existing bonuses won't be affected If seed is set to SEED_TAKE_FROM_LEVEL (-1), it will be copied from the main seed If seed is set to SEED_TAKE_FROM_DAILY_QUEST (-2), it will be generated from the daily quest date or, if absent, will act as SEED_TAKE_FROM_LEVEL Stores a copy of the config and does not mutate the original config - 
getBonusStage
 - 
getStagesConfig
 - 
reRollBonusesAction
public void reRollBonusesAction() - 
selectBonusAction
public void selectBonusAction(int bonusIdx)  - 
setSelectedBonus
public void setSelectedBonus(int stageNum, int bonusIdx)  - 
reRollBonuses
public void reRollBonuses() - 
getPreparedRandom
 - 
resetState
public void resetState() - 
getCurrentlyProgressingStage
public int getCurrentlyProgressingStage() - 
getCurrentVisualProgressStageNumber
public int getCurrentVisualProgressStageNumber() - 
getCurrentVisualProgressPoints
public int getCurrentVisualProgressPoints() - 
getNextStagePointsRequirement
public int getNextStagePointsRequirement() - 
bonusSelectionAvailable
public boolean bonusSelectionAvailable() - 
update
public void update(float deltaTime) - Overrides:
 updatein classGameSystem
 - 
getSystemName
- Specified by:
 getSystemNamein classGameSystem
 - 
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
 disposein interfaceDisposable- Overrides:
 disposein classGameSystem
 
 -