Package com.prineside.tdi2.managers
Class TowerManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.TowerManager
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,Manager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.graphics.g2d.ParticleEffectPool
final boolean[][]
final TowerManager.Factories
com.badlogic.gdx.graphics.g2d.ParticleEffectPool[]
com.badlogic.gdx.graphics.g2d.ParticleEffectPool
static final int
static final int
static final int
static final int
final float[][]
com.badlogic.gdx.graphics.g2d.ParticleEffectPool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
clampStat
(TowerType towerType, TowerStatType statType, float value) void
Очистить пул объектов (кэшированные инстансы сущностей и тп)void
dispose()
Releases all resources of this object.fromJson
(com.badlogic.gdx.utils.JsonValue jsonValue) com.badlogic.gdx.graphics.Color
getAimStrategyColor
(Tower.AimStrategy aimStrategy) com.badlogic.gdx.graphics.g2d.TextureRegion
getAimStrategyIcon
(Tower.AimStrategy aimStrategy) getAimStrategyIconAlias
(Tower.AimStrategy aimStrategy) getAimStrategyName
(Tower.AimStrategy aimStrategy) getBuiltStatisticType
(TowerType towerType) getDamageDealtStatisticType
(TowerType towerType) getDescription
(TowerType towerType) getEnemiesKilledStatisticsType
(TowerType towerType) getExperienceGenerationGameValueType
(TowerType towerType) getExperienceMultiplierGameValueType
(TowerType towerType) Tower.Factory<? extends Tower>
getFactory
(TowerType towerType) com.badlogic.gdx.graphics.Color
getMaxExpLevelGameValueType
(TowerType towerType) getMaxUpgradeLevelGameValueType
(TowerType towerType) getMoneySpentStatisticType
(TowerType towerType) getPowerfulAbilityGameValueType
(TowerType towerType) getPplAfter10GameValueType
(TowerType towerType) getPplTill10GameValueType
(TowerType towerType) getPriceGameValueType
(TowerType towerType) getSoldStatisticType
(TowerType towerType) getStartingLevelGameValueType
(TowerType towerType) float
getStatBarCoeff
(TowerStatType statType, float value, float maxValue) getStatConfig
(TowerType towerType, TowerStatType statType) float
getStatFromConfig
(TowerType towerType, TowerStatType statType, int upgradeLevel, int expLevel, GameValueProvider gvp) Получить значение из tower-stats.json без всяких бафовgetStatTypes
(TowerType towerType) getTowerGameValueType
(TowerType towerType) getUniqueStatDescription
(TowerType towerType) getUpgradedStatisticType
(TowerType towerType) int
getUpgradePrice
(TowerType towerType, int level, GameValueProvider gvp) С учетом gameValuesgetUpgradePriceGameValueType
(TowerType towerType) float
getUpgradePriceMultiplier
(TowerType towerType) boolean
hasStat
(TowerType towerType, TowerStatType statType) void
void
setup()
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
postRender, preRender, test
-
Field Details
-
STAT_ROUNDING_NONE
public static final int STAT_ROUNDING_NONE- See Also:
-
STAT_ROUNDING_FLOOR
public static final int STAT_ROUNDING_FLOOR- See Also:
-
STAT_ROUNDING_MIDDLE
public static final int STAT_ROUNDING_MIDDLE- See Also:
-
STAT_ROUNDING_CEIL
public static final int STAT_ROUNDING_CEIL- See Also:
-
SHORT_TOWER_ALIASES
-
canTowerAttackEnemy
public final boolean[][] canTowerAttackEnemy -
towerEnemyDamageMultiplier
public final float[][] towerEnemyDamageMultiplier -
F
-
abilityAvailableParticleEffectPool
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool abilityAvailableParticleEffectPool -
highlightParticles
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool[] highlightParticles -
upgradeParticles
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool upgradeParticles -
lvlUpParticles
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool lvlUpParticles
-
-
Constructor Details
-
TowerManager
public TowerManager()
-
-
Method Details
-
getStatBarCoeff
-
reloadTowerStats
public void reloadTowerStats() -
setup
public void setup()Description copied from interface:Manager
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
setup
in interfaceManager
- Overrides:
setup
in classManager.ManagerAdapter
-
getFactory
-
getStatFromConfig
public float getStatFromConfig(TowerType towerType, TowerStatType statType, int upgradeLevel, int expLevel, GameValueProvider gvp) Получить значение из tower-stats.json без всяких бафов -
getStatTypes
-
getStatConfig
-
hasStat
-
clampStat
-
getUpgradePrice
С учетом gameValues -
getUpgradePriceMultiplier
-
fromJson
-
getAimStrategyName
-
getAimStrategyIconAlias
-
getAimStrategyIcon
public com.badlogic.gdx.graphics.g2d.TextureRegion getAimStrategyIcon(Tower.AimStrategy aimStrategy) -
getAimStrategyColor
-
getTitle
-
getDescription
-
getUniqueStatDescription
-
getUpgradePriceGameValueType
-
getPriceGameValueType
-
getMaxExpLevelGameValueType
-
getMaxUpgradeLevelGameValueType
-
getExperienceGenerationGameValueType
-
getPplTill10GameValueType
-
getPplAfter10GameValueType
-
getExperienceMultiplierGameValueType
-
getTowerGameValueType
-
getStartingLevelGameValueType
-
getPowerfulAbilityGameValueType
-
getMoneySpentStatisticType
-
getUpgradedStatisticType
-
getDamageDealtStatisticType
-
getEnemiesKilledStatisticsType
-
getBuiltStatisticType
-
getSoldStatisticType
-
getGeneralizedTowerStatName
-
getGeneralizedTowerStatColor
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classManager.ManagerAdapter
-
clearPools
public void clearPools()Description copied from interface:Manager
Очистить пул объектов (кэшированные инстансы сущностей и тп)- Specified by:
clearPools
in interfaceManager
- Overrides:
clearPools
in classManager.ManagerAdapter
-