Package com.prineside.tdi2
Class Tower.Factory<T extends Tower>
java.lang.Object
com.prineside.tdi2.Tower.Factory<T>
- 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
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.graphics.g2d.TextureRegion -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidCalled on GSP construction, allows to add tower-specific listenersabstract Tcreate()com.badlogic.gdx.scenes.scene2d.ActorcreateIconActor(float size) abstract String[]getAbilityConfigs(GameSystemProvider S, Tower tower) final QuadgetAbilityTextures(int abilityIdx) final Quadabstract intintabstract com.badlogic.gdx.graphics.ColorgetColor()abstract intgetGeneralizedStat(GeneralizedTowerStatType statType) com.badlogic.gdx.scenes.scene2d.utils.Drawablecom.badlogic.gdx.graphics.g2d.TextureRegionfinal QuadgetStatMoreInfo(TowerStatType statType, GameValueProvider gvp, Tower tower) getTitle()booleanbooleanreceivesSpaceTileBonus(SpaceTileBonusType bonusType) voidsetup()Вызывается, когда объекты всех Managers созданыvoidbooleanshouldDrawAbilityToCache(int abilityIdx)
-
Field Details
-
roundedSmallRectTextureRegion
public com.badlogic.gdx.graphics.g2d.TextureRegion 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() -
clearPool
public void clearPool() -
create
-
getColor
public abstract com.badlogic.gdx.graphics.Color getColor() -
getTitle
-
getDescription
-
getBuildPrice
-
canKillEnemies
public boolean canKillEnemies() -
receivesSpaceTileBonus
-
getGeneralizedStat
-
createIconActor
public com.badlogic.gdx.scenes.scene2d.Actor createIconActor(float size) -
getIconDrawable
public com.badlogic.gdx.scenes.scene2d.utils.Drawable getIconDrawable() -
getIconTexture
public com.badlogic.gdx.graphics.g2d.TextureRegion getIconTexture()
-