Package com.prineside.tdi2.towers
Class GaussTower
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Building
com.prineside.tdi2.Tower
com.prineside.tdi2.towers.GaussTower
- All Implemented Interfaces:
Disposable
,KryoSerializable
,ScheduledUpdater.Updatable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
static class
Nested 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, 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, 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()
boolean
void
customButtonAction
(int x, int y) void
void
drawBatchAdditive
(Batch batch, float deltaTime) void
drawWeapon
(Batch batch, float x, float y, float size, float deltaTime) void
fillTowerMenu
(Group container, ObjectMap<String, Object> elements) Добавить / обновить элементы в меню башни Вызывается каждый кадр, когда видно меню башни elements сохраняется между вызовами метода, чтобы не создавать актеров заново.float
static double
getResourceChargeValue
(ResourceType resourceType) float
boolean
Только если canAim = falseboolean
void
void
setTargetAngle
(float targetAngle) void
void
update
(float deltaTime) void
updateCustomButton
(ComplexButton complexButton, boolean isPointing) void
Methods inherited from class com.prineside.tdi2.Tower
applyDrawInterpolation, calculateXpLevel, canAbilityBeInstalled, canAttackEnemy, canNewAbilityBeInstalled, cloneBuilding, dispose, drawAbilitiesToCache, drawBase, drawGlitch, drawHoveredRange, drawSelectedRange, findTarget, findTarget, getEnemyPriority, getExpLevelStatBonusPercentage, getLevel, getLevelForExperience, getMaxTowerLevel, getMaxUpgradeLevel, getMinRange, getPowerCombinedMultiplier, getRange, getScheduledUpdateInterval, getSellPrice, getStartingLevel, getStat, getTarget, getUniqueStatDescription, getUpgradeLevel, getWalkCost, isAbilityInstalled, isOutOfOrder, isSellFullRefundStillActive, isStatAffectedByPower, loadFromJson, onAbilitySet, onPreSell, placedOnMap, removedFromMap, rotateTo, rotateTo, sameAs, scheduledUpdatableGetId, scheduledUpdatableSetId, scheduledUpdate, setAimStrategy, setExperience, setLevel, setRegistered, setTarget, setUpgradeLevel, shouldSearchForTarget, toJson, updateCache, upgrade, upgrade
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered
-
Field Details
-
ABILITY_ALIASES
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classTower
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classTower
-
setUnregistered
public void setUnregistered()- Overrides:
setUnregistered
in classTower
-
getWeaponTextures
- Specified by:
getWeaponTextures
in classTower
-
canAim
public boolean canAim() -
canAttack
public boolean canAttack() -
getAttackDelay
public float getAttackDelay()- Overrides:
getAttackDelay
in classTower
-
attack
public void attack(int shotsCount) -
addExperience
public void addExperience(float exp) - Overrides:
addExperience
in classTower
-
calculateStat
-
drawWeapon
- Overrides:
drawWeapon
in classTower
-
getResourceChargeValue
-
update
public void update(float deltaTime) -
drawBatch
-
drawBatchAdditive
- Overrides:
drawBatchAdditive
in classTower
-
hasCustomButton
public boolean hasCustomButton()Description copied from class:Tower
Только если canAim = false- Overrides:
hasCustomButton
in classTower
-
isCustomButtonNeedMapPoint
public boolean isCustomButtonNeedMapPoint()- Overrides:
isCustomButtonNeedMapPoint
in classTower
-
customButtonAction
public void customButtonAction(int x, int y) - Overrides:
customButtonAction
in classTower
-
getTargetAngle
public float getTargetAngle() -
setTargetAngle
public void setTargetAngle(float targetAngle) -
updateCustomButton
- Overrides:
updateCustomButton
in classTower
-
fillTowerMenu
Description copied from class:Tower
Добавить / обновить элементы в меню башни Вызывается каждый кадр, когда видно меню башни elements сохраняется между вызовами метода, чтобы не создавать актеров заново. Если он пустой - значит, вызвали первый раз и надо создать Можно не обновлять ничего, если состояние устраивает (можно хранить любые данные в elements, например хэш состояния или предыдущие значения)- Overrides:
fillTowerMenu
in classTower
-