Package com.prineside.tdi2.tiles
Class SpawnTile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Tile
com.prineside.tdi2.tiles.SpawnTile
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.prineside.tdi2.Tile
Tile.Factory<T extends Tile>, Tile.Pos -
Field Summary
FieldsModifier and TypeFieldDescriptionintcom.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.Array<EnemyGroup.SpawnEnemyGroup>>Fields inherited from class com.prineside.tdi2.Tile
boundingBox, center, enemyCount, highlightParticleA, highlightParticleB, type, visibleOnScreenFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedEnemy(EnemyType enemyType, int firstWave, int lastWave) voidaddSellItems(com.badlogic.gdx.utils.Array<ItemStack> toStacks) booleanvoiddrawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) voidfillInventoryWithInfo(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) voidfillItemCreationForm(ItemCreationOverlay overlay) voidfillMapEditorMenu(com.badlogic.gdx.scenes.scene2d.ui.Table container, MapEditorItemInfoMenu menu) voidintИспользуется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайлаcom.badlogic.gdx.scenes.scene2d.GroupgenerateUiIcon(float tileSize) Сгенерировать stage2d Group для отображения тайла в UIcom.badlogic.gdx.utils.Array<SpawnTile.AllowedEnemyConfig>com.badlogic.gdx.utils.ObjectSet<EnemyType>getEnemyConfig(EnemyType enemyType) Вызывается через ItemdoubleintgetSortingScore(ItemSortingType sortingType) floatgetValue()floatgetWalkCost(boolean walkablePlatforms) booleanisEnemyAllowedOnWave(EnemyType enemyType, int waveNumber) booleanvoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidremoveAllowedEnemy(EnemyType enemyType) booleanvoidsetAllowedEnemies(com.badlogic.gdx.utils.Array<SpawnTile.AllowedEnemyConfig> allowedEnemies) voidvoidtoJson(com.badlogic.gdx.utils.Json json) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.Tile
affectedByLuckyWheelMultiplier, canBeSelected, canBeSold, cloneTile, createUpgradedTile, drawExtras, drawHoveredRange, drawRoadStatic, drawSelectedRange, drawStatic, getBoundingBox, getData, getDescription, getTitle, getUpgradePriceInAccelerators, getUpgradePriceInGreenPapers, getUpgradePriceInResources, getUserData, getX, getY, postDrawBatch, removeExtrasForInventory, sameAsWithExtras, setPos, setUserData, toString, updateCacheMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Field Details
-
difficulty
public int difficulty -
enemySpawnQueues
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.Array<EnemyGroup.SpawnEnemyGroup>> enemySpawnQueues
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) -
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) -
fillMapEditorMenu
public void fillMapEditorMenu(com.badlogic.gdx.scenes.scene2d.ui.Table container, MapEditorItemInfoMenu menu) - Overrides:
fillMapEditorMenuin classTile
-
fillInventoryWithInfo
public void fillInventoryWithInfo(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) - Overrides:
fillInventoryWithInfoin classTile
-
generateSeedSalt
public int generateSeedSalt()Description copied from class:TileИспользуется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайла- Overrides:
generateSeedSaltin classTile
-
addAllowedEnemy
-
removeAllowedEnemy
-
getEnemyConfig
- Returns:
- AllowedEnemyConfig или null
-
setAllowedEnemies
public void setAllowedEnemies(com.badlogic.gdx.utils.Array<SpawnTile.AllowedEnemyConfig> allowedEnemies) -
getAllowedEnemies
-
getAllowedEnemiesSet
-
isEnemyAllowedOnWave
-
getRarity
-
getWalkCost
public float getWalkCost(boolean walkablePlatforms) - Overrides:
getWalkCostin classTile
-
getInventorySubcategory
Description copied from class:TileВызывается через Item- Specified by:
getInventorySubcategoryin classTile
-
from
-
getValue
public float getValue() -
addSellItems
- Overrides:
addSellItemsin classTile
-
getPrestigeScore
public double getPrestigeScore()- Specified by:
getPrestigeScorein classTile- Returns:
- кол-во очков престижа за продажу. Если 0 или меньше, не будет продан. 1 score = 1 dust
-
canBeUpgraded
public boolean canBeUpgraded()- Overrides:
canBeUpgradedin classTile
-
getSortingScore
- Specified by:
getSortingScorein classTile
-
isRoadType
public boolean isRoadType()- Specified by:
isRoadTypein classTile
-
setUnregistered
public void setUnregistered()- Overrides:
setUnregisteredin classRegistrable
-
drawBatch
public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) -
generateUiIcon
public com.badlogic.gdx.scenes.scene2d.Group generateUiIcon(float tileSize) Description copied from class:TileСгенерировать stage2d Group для отображения тайла в UI- Specified by:
generateUiIconin classTile
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
sameAs
-