Package com.prineside.tdi2.towers
Class FlamethrowerTower
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Building
com.prineside.tdi2.Tower
com.prineside.tdi2.towers.FlamethrowerTower
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.KryoSerializable,ScheduledUpdater.Updatable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Tower
Tower.AbilityConfig, Tower.AimStrategy, Tower.Factory<T extends Tower>, Tower.FindEnemyFilter -
Field Summary
Fields inherited from class com.prineside.tdi2.Tower
ABILITIES_COUNT, ABILITY_INDEX_POWERFUL, ABILITY_INDEX_SPECIAL, ABILITY_INDEX_ULTIMATE, ABILITY_NAMES, abilityAvailableParticleEffect, aimStrategy, angle, attackDisabled, bonusCoinsBrought, bountyModifiersNearby, currentLevelExperience, damageGiven, DPS_STAT_INTERVAL, DPS_STAT_SLOTS, dpsDamage, dpsTime, enemiesKilled, experience, experienceGeneration, experienceMultiplier, id, installedAbilities, LEVEL_EXPERIENCE, LEVEL_EXPERIENCE_MILESTONES, MAX_LEVEL, MAX_UPGRADE_LEVEL, mdps, minRangeInPixels, moneySpentOn, nextLevelExperience, outOfOrder, rangeInPixels, rangeInPixelsSqr, searchEnemiesHelper, SHADOW_COLOR, shotCount, typeFields inherited from class com.prineside.tdi2.Building
buildingTypeFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAim()booleanvoiddrawBase(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, int x, int y, MapRenderingSystem.DrawMode drawMode) voiddrawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) floatfloatfloatgetStat(TowerStatType towerStatType) com.badlogic.gdx.utils.Array<TextureRegionConfig>voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidscheduledUpdate(float deltaTime) voidsetAimStrategy(Tower.AimStrategy aimStrategy) voidupdate(float deltaTime) voidОбновляет кэш текущих характеристик башни Так как характеристики обновляются, одновременно обновляется массив тайлов в радиусе пораженияvoidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.Tower
addExperience, applyDrawInterpolation, attack, canAbilityBeInstalled, canAttackEnemy, canNewAbilityBeInstalled, cloneBuilding, customButtonAction, dispose, drawBatchAdditive, drawGlitch, drawHoveredRange, drawSelectedRange, drawWeapon, fillTowerMenu, findTarget, findTarget, getCachedStatBuffed, getEnemyPriority, getExpLevelStatBonusPercentage, getLevel, getLevelForExperience, getMaxTowerLevel, getMaxUpgradeLevel, getMinRange, getPowerCombinedMultiplier, getRange, getSellPrice, getStartingLevel, getStatBuffed, getStatCacheState, getTarget, getUniqueStatDescription, getUpgradeLevel, hasCustomButton, isAbilityInstalled, isCustomButtonNeedMapPoint, isOutOfOrder, isSellFullRefundStillActive, isStatAffectedByPower, loadFromJson, onAbilitySet, onPreSell, placedOnMap, registerNearbyModifier, removedFromMap, rotateTo, rotateTo, scheduledUpdatableGetId, scheduledUpdatableSetId, setExperience, setRegistered, setTarget, setTile, setUnregistered, setUpgradeLevel, shouldSearchForTarget, toJson, traverseTilesInRange, unregisterNearbyModifier, updateCustomButton, upgrade, upgradeMethods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) -
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) -
getWeaponTextures
- Specified by:
getWeaponTexturesin classTower
-
canAim
public boolean canAim() -
getAttackDelay
public float getAttackDelay()- Overrides:
getAttackDelayin classTower
-
canAttack
public boolean canAttack() -
getStat
-
updateCache
public void updateCache()Description copied from class:TowerОбновляет кэш текущих характеристик башни Так как характеристики обновляются, одновременно обновляется массив тайлов в радиусе поражения- Overrides:
updateCachein classTower
-
getScheduledUpdateInterval
public float getScheduledUpdateInterval()- Overrides:
getScheduledUpdateIntervalin classTower
-
setAimStrategy
- Overrides:
setAimStrategyin classTower
-
scheduledUpdate
public void scheduledUpdate(float deltaTime) - Specified by:
scheduledUpdatein interfaceScheduledUpdater.Updatable- Overrides:
scheduledUpdatein classTower
-
update
public void update(float deltaTime) -
drawBase
public void drawBase(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, int x, int y, MapRenderingSystem.DrawMode drawMode) -
drawBatch
public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime)
-