Package com.prineside.tdi2.towers
Class SniperTower
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Building
com.prineside.tdi2.Tower
com.prineside.tdi2.towers.SniperTower
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final 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 TypeMethodDescriptionvoidattack(int shotsCount) floatcalculateStat(TowerStatType towerStatType) booleancanAim()booleanvoidvoidvoidRemove the reference to the game state and mark this object as not registered.booleanvoidupdate(float deltaTime) voidMethods inherited from class com.prineside.tdi2.Tower
addExperience, applyDrawInterpolation, calculateXpLevel, canAbilityBeInstalled, canAttackEnemy, canNewAbilityBeInstalled, cloneBuilding, customButtonAction, dispose, drawAbilitiesToCache, drawBase, drawBatchAdditive, drawGlitch, drawHoveredRange, drawSelectedRange, drawWeapon, 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, onPreSell, placedOnMap, removedFromMap, rotateAtPoint, rotateToAngle, sameAs, setAimStrategy, setExperience, setLevel, setRegistered, setTarget, setUpgradeLevel, toJson, updateCache, updateCustomButton, upgrade, upgradeToLevelMethods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Field Details
-
MIN_AIM_SPEED_MULTIPLIER_IN_CROWD
public static final float MIN_AIM_SPEED_MULTIPLIER_IN_CROWD- See Also:
-
AIM_SPEED_MULTIPLIER_PER_ENEMY_IN_CROWD
public static final float AIM_SPEED_MULTIPLIER_PER_ENEMY_IN_CROWD- See Also:
-
ABILITY_ALIASES
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classTower
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classTower
-
setUnregistered
public void setUnregistered()Description copied from class:RegistrableRemove the reference to the game state and mark this object as not registered.- Overrides:
setUnregisteredin classTower
-
getWeaponTextures
- Specified by:
getWeaponTexturesin classTower
-
canAim
public boolean canAim() -
shouldSearchForTarget
public boolean shouldSearchForTarget()- Overrides:
shouldSearchForTargetin classTower
-
canAttack
public boolean canAttack() -
attack
public void attack(int shotsCount) -
calculateStat
-
update
public void update(float deltaTime) -
drawBatch
-