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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
Called on GSP construction, allows to add tower-specific listenersabstract T
create()
com.badlogic.gdx.scenes.scene2d.Actor
createIconActor
(float size) abstract String[]
getAbilityConfigs
(GameSystemProvider S, Tower tower) final Quad
getAbilityTextures
(int abilityIdx) final Quad
abstract int
int
abstract com.badlogic.gdx.graphics.Color
getColor()
abstract int
getGeneralizedStat
(GeneralizedTowerStatType statType) com.badlogic.gdx.scenes.scene2d.utils.Drawable
com.badlogic.gdx.graphics.g2d.TextureRegion
final Quad
getStatMoreInfo
(TowerStatType statType, GameValueProvider gvp, Tower tower) getTitle()
boolean
boolean
receivesSpaceTileBonus
(SpaceTileBonusType bonusType) void
setup()
Вызывается, когда объекты всех Managers созданыvoid
boolean
shouldDrawAbilityToCache
(int abilityIdx)
-
Field Details
-
baseTextures
-
shadowTextures
-
weaponTexture
-
weaponShadowTexture
-
abilityTextures
-
roundedSmallRectTextureRegion
public com.badlogic.gdx.graphics.g2d.TextureRegion roundedSmallRectTextureRegion -
abilityConfigs
-
-
Constructor Details
-
Factory
-
-
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()
-