Package com.prineside.tdi2.managers
Class GameValueManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.GameValueManager
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,Manager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic classstatic classstatic classstatic classstatic enumNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.badlogic.gdx.utils.Pool<GameValueManager.GameValueEffect>static final com.badlogic.gdx.graphics.Color -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSnapshot(GameValueManager.GameValuesSnapshot snapshot, DifficultyMode difficultyMode, boolean fillWithEffects, BasicLevel forLevel, boolean disableResearchAndTrophies, boolean forUserMaps) com.badlogic.gdx.utils.StringBuilderformatEffectTitleValue(double value, GameValueType type) com.badlogic.gdx.utils.StringBuilderformatEffectValue(double value, GameValueManager.ValueUnits units) Use formatEffectTitleValue() to format both title and value (to properly print boolean GVs)getCheatingReason(com.badlogic.gdx.utils.Array<GameValueManager.GvSnapDiff> diffs) com.badlogic.gdx.utils.Array<GameValueManager.GameValueEffect>com.badlogic.gdx.utils.StringBuildergetDisabledTitle(GameValueType valueType) com.badlogic.gdx.utils.StringBuildergetTitle(GameValueType valueType) getUnits(GameValueType valueType) voidvoidvoidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяvoidtest()Запустить тестирование, чтобы проверить, все ли ресурсы есть (текстуры / i18n) Запускается после загрузки всех менеджеровMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
clearPools, dispose, postRender, preRender
-
Field Details
-
ICON_BACKGROUND_COLOR
public static final com.badlogic.gdx.graphics.Color ICON_BACKGROUND_COLOR -
gameValueEffectPool
public static final com.badlogic.gdx.utils.Pool<GameValueManager.GameValueEffect> gameValueEffectPool
-
-
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
public com.badlogic.gdx.utils.StringBuilder formatEffectValue(double value, GameValueManager.ValueUnits units) Use formatEffectTitleValue() to format both title and value (to properly print boolean GVs) -
formatEffectTitleValue
public com.badlogic.gdx.utils.StringBuilder formatEffectTitleValue(double value, GameValueType type) -
getStockValueConfig
-
getTitle
-
getDisabledTitle
-
getUnits
-
getSnapshot
-
createSnapshot
public GameValueManager.GameValuesSnapshot createSnapshot(GameValueManager.GameValuesSnapshot snapshot, DifficultyMode difficultyMode, boolean fillWithEffects, BasicLevel forLevel, boolean disableResearchAndTrophies, boolean forUserMaps) - 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
-