Package com.prineside.tdi2.towers
Class BasicTower
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Building
com.prineside.tdi2.Tower
com.prineside.tdi2.towers.BasicTower
- All Implemented Interfaces:
KryoSerializable
-
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
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, type
Fields inherited from class com.prineside.tdi2.Building
buildingType
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExperience
(float exp) void
attack
(int shotsCount) float
calculateStat
(TowerStatType towerStatType) boolean
canAim()
int
void
onAbilitySet
(int abilityIdx, boolean isSet) void
void
boolean
void
update
(float deltaTime) void
Methods inherited from class com.prineside.tdi2.Tower
applyDrawInterpolation, calculateXpLevel, canAbilityBeInstalled, canAttack, canAttackEnemy, canNewAbilityBeInstalled, cloneBuilding, customButtonAction, dispose, drawAbilitiesToCache, drawBase, drawBatch, drawBatchAdditive, drawGlitch, drawHoveredRange, drawSelectedRange, drawWeapon, fillTowerMenu, findTarget, findTargetFiltered, getAttackDelay, getEnemyPriority, getExpLevelStatBonusPercentage, getLevel, getLevelExperienceMilestone, getLevelForExperience, getLevelForExperienceFast, getMaxTowerLevel, getMaxUpgradeLevel, getMinRange, getPowerCombinedMultiplier, getRange, getStartingLevel, getStartingPwr, getStat, getTarget, getUniqueStatDescription, getUpgradeLevel, getWalkCost, hasCustomButton, isAbilityInstalled, isCustomButtonNeedMapPoint, isOutOfOrder, isSellFullRefundStillActive, isStatAffectedByPower, loadFromJson, placedOnMap, removedFromMap, rotateAtPoint, rotateToAngle, sameAs, setAimStrategy, setExperience, setLevel, setRegistered, setTarget, setUnregistered, setUpgradeLevel, toJson, updateCache, updateCustomButton, upgrade, upgradeToLevel
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Field Details
-
ABILITY_FOUNDATION
public static final int ABILITY_FOUNDATION- See Also:
-
ABILITY_ALIASES
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classTower
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classTower
-
getWeaponTextures
- Specified by:
getWeaponTextures
in classTower
-
getSellPrice
public int getSellPrice()- Overrides:
getSellPrice
in classTower
-
addExperience
public void addExperience(float exp) - Overrides:
addExperience
in classTower
-
onAbilitySet
public void onAbilitySet(int abilityIdx, boolean isSet) - Overrides:
onAbilitySet
in classTower
-
canAim
public boolean canAim() -
shouldSearchForTarget
public boolean shouldSearchForTarget()- Overrides:
shouldSearchForTarget
in classTower
-
attack
public void attack(int shotsCount) -
calculateStat
-
onPreSell
public void onPreSell() -
update
public void update(float deltaTime)
-