Package com.prineside.tdi2.towers
Class CrusherTower
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Building
com.prineside.tdi2.Tower
com.prineside.tdi2.towers.CrusherTower
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.prineside.tdi2.Tower
Tower.AbilityConfig, Tower.AimStrategy, Tower.Factory<T extends Tower>, Tower.FindEnemyFilter -
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Tower
ABILITIES_COUNT, ABILITY_INDEX_POWERFUL, ABILITY_INDEX_SPECIAL, ABILITY_INDEX_ULTIMATE, ABILITY_NAMES, abilityAvailableParticleEffect, affectedByLoopAbility, aimStrategy, angle, attackDisabled, bonusCoinsBrought, bountyModifiersNearby, currentLevelExperience, damageGiven, DPS_STAT_INTERVAL, DPS_STAT_SLOTS, dpsDamage, dpsTime, enemiesKilled, experience, experienceGeneration, experienceMultiplier, id, installedAbilities, level, LEVEL_EXPERIENCE, LEVEL_EXPERIENCE_MILESTONES, loopAbilityDamageBuffer, MAX_LEVEL, MAX_UPGRADE_LEVEL, mdps, minRangeInPixels, moneySpentOn, nextLevelExperience, outOfOrder, powerBonuses, rangeInPixels, SHADOW_COLOR, shotCount, typeFields inherited from class com.prineside.tdi2.Building
buildingTypeFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDrawInterpolation(float interpolatedTime) floatcalculateStat(TowerStatType towerStatType) booleancanAim()booleanvoidvoiddrawBatchAdditive(Batch batch, float deltaTime) voiddrawWeapon(Batch batch, float x, float y, float size, float deltaTime) floatfloatvoidvoidbooleanvoidupdate(float deltaTime) voidОбновляет кэш текущих характеристик башни Так как характеристики обновляются, одновременно обновляется массив тайлов в радиусе пораженияvoidMethods inherited from class com.prineside.tdi2.Tower
addExperience, attack, calculateXpLevel, canAbilityBeInstalled, canAttackEnemy, canNewAbilityBeInstalled, cloneBuilding, customButtonAction, dispose, drawAbilitiesToCache, drawBase, drawGlitch, drawHoveredRange, drawSelectedRange, fillTowerMenu, findTarget, findTargetFiltered, getAttackDelay, getEnemyPriority, getExpLevelStatBonusPercentage, getLevel, getLevelExperienceMilestone, getLevelForExperience, getLevelForExperienceFast, getMaxTowerLevel, getMaxUpgradeLevel, getMinRange, getPowerCombinedMultiplier, getRange, getSellPrice, getStartingLevel, getStartingPwr, getStat, getTarget, getUniqueStatDescription, getUpgradeLevel, getWalkCost, hasCustomButton, isAbilityInstalled, isCustomButtonNeedMapPoint, isOutOfOrder, isSellFullRefundStillActive, isStatAffectedByPower, loadFromJson, onAbilitySet, placedOnMap, removedFromMap, rotateAtPoint, rotateToAngle, sameAs, setAimStrategy, setExperience, setLevel, setRegistered, setTarget, setUnregistered, setUpgradeLevel, toJson, updateCustomButton, upgrade, upgradeToLevelMethods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Field Details
-
ABILITY_ALIASES
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classTower
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classTower
-
getWeaponTextures
- Specified by:
getWeaponTexturesin classTower
-
applyDrawInterpolation
public void applyDrawInterpolation(float interpolatedTime) - Overrides:
applyDrawInterpolationin classTower
-
drawWeapon
- Overrides:
drawWeaponin classTower
-
drawBatchAdditive
- Overrides:
drawBatchAdditivein classTower
-
canAim
public boolean canAim() -
shouldSearchForTarget
public boolean shouldSearchForTarget()- Overrides:
shouldSearchForTargetin classTower
-
canAttack
public boolean canAttack() -
calculateStat
-
updateCache
public void updateCache()Description copied from class:TowerОбновляет кэш текущих характеристик башни Так как характеристики обновляются, одновременно обновляется массив тайлов в радиусе поражения- Overrides:
updateCachein classTower
-
drawBatch
-
onPreSell
public void onPreSell() -
update
public void update(float deltaTime) -
getDisorientedUnitCoinPerTile
public float getDisorientedUnitCoinPerTile() -
getDisorientationChance
public float getDisorientationChance()
-