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

public abstract static class Tower.Factory<T extends Tower> extends Object implements EntityFactory
  • Field Details

    • roundedSmallRectTextureRegion

      public TextureRegion roundedSmallRectTextureRegion
  • Method Details

    • getBuildHotKey

      public abstract int getBuildHotKey()
    • getAbilityAliases

      public abstract String[] getAbilityAliases()
    • isAvailable

      public boolean isAvailable(GameValueProvider gvp)
    • getAbilityTextures

      public final Quad getAbilityTextures(int abilityIdx)
    • getShadowTextures

      public final Quad getShadowTextures()
    • getBaseTextures

      public final Quad getBaseTextures()
    • getWeaponTexture

      @Null public Quad getWeaponTexture()
    • getWeaponShadowTexture

      @Null public Quad getWeaponShadowTexture()
    • configureSystems

      public void configureSystems(GameSystemProvider S)
      Called on GSP construction, allows to add tower-specific listeners
    • setup

      public void setup()
      Вызывается, когда объекты всех Managers созданы
    • shouldDrawAbilityToCache

      public boolean shouldDrawAbilityToCache(int abilityIdx)
    • getAbilityConfigs

      public Tower.AbilityConfig[] getAbilityConfigs(GameSystemProvider S, Tower tower)
    • getStatMoreInfo

      @Null public CharSequence getStatMoreInfo(TowerStatType statType, GameValueProvider gvp, Tower tower)
    • setupAssets

      public void setupAssets()
    • create

      public abstract T create()
    • getColor

      public abstract Color getColor()
    • getTitle

      public String getTitle()
    • getDescription

      public String getDescription()
    • getBuildPrice

      public int getBuildPrice(GameSystemProvider S)
    • canKillEnemies

      public boolean canKillEnemies()
    • receivesSpaceTileBonus

      public boolean receivesSpaceTileBonus(SpaceTileBonusType bonusType)
    • getGeneralizedStat

      public abstract int getGeneralizedStat(GeneralizedTowerStatType statType)
    • createIconActor

      public Actor createIconActor(float size)
    • getIconDrawable

      public Drawable getIconDrawable()
    • getIconTexture

      public TextureRegion getIconTexture()