Package com.prineside.tdi2.managers
Class GameValueManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.GameValueManager
- All Implemented Interfaces:
 Disposable,Manager
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic final classstatic classstatic classstatic classstatic enumNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSnapshot(GameValueManager.GameValuesSnapshot snapshot, DifficultyMode difficultyMode, boolean fillWithEffects, BasicLevel forLevel, boolean disableResearchAndTrophies, boolean forUserMaps, ProgressManager.ProgressSnapshotForState progressSnapshot) formatEffectTitleValue(double value, GameValueType type) formatEffectValue(double value, GameValueManager.ValueUnits units) Use formatEffectTitleValue() to format both title and value (to properly print boolean GVs)getDisabledTitle(GameValueType valueType) Depends on the selected difficultygetTitle(GameValueType valueType) getUnits(GameValueType valueType) voidvoidvoidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяvoidtest()Запустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеровMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
dispose, postRender, preRender 
- 
Field Details
- 
ICON_BACKGROUND_COLOR
 
 - 
 - 
Constructor Details
- 
GameValueManager
public GameValueManager() 
 - 
 - 
Method Details
- 
setup
public void setup()Description copied from interface:ManagerВызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
 setupin interfaceManager- Overrides:
 setupin classManager.ManagerAdapter
 - 
addListener
 - 
removeListener
 - 
getCheatingReason
 - 
requireRecalculation
public void requireRecalculation() - 
getCurrentEffects
 - 
formatEffectValue
Use formatEffectTitleValue() to format both title and value (to properly print boolean GVs) - 
formatEffectTitleValue
 - 
getStockValueConfig
 - 
getTitle
 - 
getDisabledTitle
 - 
getUnits
 - 
getSnapshot
Depends on the selected difficulty - 
getEndlessSnapshot
 - 
createSnapshot
public static GameValueManager.GameValuesSnapshot createSnapshot(@Null GameValueManager.GameValuesSnapshot snapshot, DifficultyMode difficultyMode, boolean fillWithEffects, BasicLevel forLevel, boolean disableResearchAndTrophies, boolean forUserMaps, ProgressManager.ProgressSnapshotForState progressSnapshot) - Parameters:
 snapshot- куда записывать, может быть null (вернет новый)fillWithEffects- записывать все найденные эффекты в currentEffectsforLevel- для какого уровня просчитывать (уровни получают бонусы от квестов), может быть nulldisableResearchAndTrophies- для базы, которая отменяет эффекты исследований (просчитаются стандартные значения или + те, что не игнорируются с forUserMaps)forUserMaps- если true и disableResearchAndTrophies = true, вернет стандартные значения с теми, которые не игнорируются пользовательскими картами
 - 
test
public void test()Description copied from interface:ManagerЗапустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеров- Specified by:
 testin interfaceManager- Overrides:
 testin classManager.ManagerAdapter
 
 -