Package com.prineside.tdi2
Class Tower.Factory<T extends Tower>
java.lang.Object
com.prineside.tdi2.Tower.Factory<T>
- All Implemented Interfaces:
EntityFactory
- Direct Known Subclasses:
AirTower.AirTowerFactory,BasicTower.BasicTowerFactory,BlastTower.BlastTowerFactory,CannonTower.CannonTowerFactory,CrusherTower.CrusherTowerFactory,FlamethrowerTower.FlamethrowerTowerFactory,FreezingTower.FreezingTowerFactory,GaussTower.GaussTowerFactory,LaserTower.LaserTowerFactory,MinigunTower.MinigunTowerFactory,MissileTower.MissileTowerFactory,MultishotTower.MultishotTowerFactory,SniperTower.SniperTowerFactory,SplashTower.SplashTowerFactory,TeslaTower.TeslaTowerFactory,VenomTower.VenomTowerFactory
- Enclosing class:
- Tower
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidCalled on GSP construction, allows to add tower-specific listenersabstract Tcreate()createIconActor(float size) abstract String[]getAbilityConfigs(GameSystemProvider S, Tower tower) final QuadgetAbilityTextures(int abilityIdx) final Quadabstract intintabstract ColorgetColor()abstract intgetGeneralizedStat(GeneralizedTowerStatType statType) final QuadgetStatMoreInfo(TowerStatType statType, GameValueProvider gvp, Tower tower) getTitle()booleanbooleanreceivesSpaceTileBonus(SpaceTileBonusType bonusType) voidsetup()Вызывается, когда объекты всех Managers созданыvoidbooleanshouldDrawAbilityToCache(int abilityIdx)
-
Field Details
-
roundedSmallRectTextureRegion
-
-
Method Details
-
getBuildHotKey
public abstract int getBuildHotKey() -
getAbilityAliases
-
isAvailable
-
getAbilityTextures
-
getShadowTextures
-
getBaseTextures
-
getWeaponTexture
-
getWeaponShadowTexture
-
configureSystems
Called on GSP construction, allows to add tower-specific listeners -
setup
public void setup()Вызывается, когда объекты всех Managers созданы -
shouldDrawAbilityToCache
public boolean shouldDrawAbilityToCache(int abilityIdx) -
getAbilityConfigs
-
getStatMoreInfo
@Null public CharSequence getStatMoreInfo(TowerStatType statType, GameValueProvider gvp, Tower tower) -
setupAssets
public void setupAssets() -
create
-
getColor
-
getTitle
-
getDescription
-
getBuildPrice
-
canKillEnemies
public boolean canKillEnemies() -
receivesSpaceTileBonus
-
getGeneralizedStat
-
createIconActor
-
getIconDrawable
-
getIconTexture
-