Package com.prineside.tdi2.tiles
Class TargetTile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Tile
com.prineside.tdi2.tiles.TargetTile
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Tile
Tile.Factory<T extends Tile>, Tile.Pos
-
Field Summary
Fields inherited from class com.prineside.tdi2.Tile
boundingBox, center, enemyCount, highlightParticleA, highlightParticleB, type, userData, visibleOnScreen
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGameValue
(GameValueConfig config) void
addSellItems
(com.badlogic.gdx.utils.Array<ItemStack> toStacks) boolean
void
drawBatch
(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y) Перед отрисовкой врагов и прочего (сразу после отрисовки карты)void
fillInventoryWithInfo
(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) void
int
Используется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайлаcom.badlogic.gdx.scenes.scene2d.Group
generateUiIcon
(float tileSize) Сгенерировать stage2d Group для отображения тайла в UIcom.badlogic.gdx.utils.Array<GameValueConfig>
Вызывается через Itemdouble
int
getSortingScore
(ItemSortingType sortingType) float
boolean
boolean
boolean
boolean
void
postDrawBatch
(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y) После отрисовки врагов и прочегоvoid
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
removeGameValue
(GameValueConfig config) boolean
void
setDisableAbilities
(boolean disabled) void
setUseStockGameValues
(boolean use) void
showHitEffect
(com.badlogic.gdx.math.Vector2 hitFrom) void
void
toJson
(com.badlogic.gdx.utils.Json json) void
void
write
(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, fillItemCreationForm, fillMapEditorMenu, getData, getDescription, getMap, getQuality, getTitle, getUpgradePriceInAccelerators, getUpgradePriceInGreenPapers, getUpgradePriceInResources, getUserData, getValue, getX, getY, setMap, setPos, setUserData, toString, traverseNeighbourTiles, traverseNeighbourTilesAndThis
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
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) -
showHitEffect
public void showHitEffect(com.badlogic.gdx.math.Vector2 hitFrom) -
startExplosionEffect
public void startExplosionEffect() -
fillInventoryWithInfo
public void fillInventoryWithInfo(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) - Overrides:
fillInventoryWithInfo
in classTile
-
addGameValue
-
removeGameValue
-
updateAppearance
public void updateAppearance() -
getGameValues
-
isDisableAbilities
public boolean isDisableAbilities() -
isWalkableTiles
public boolean isWalkableTiles() -
isUseStockGameValues
public boolean isUseStockGameValues() -
setUseStockGameValues
public void setUseStockGameValues(boolean use) -
setDisableAbilities
public void setDisableAbilities(boolean disabled) -
getRarity
-
getWalkCost
public float getWalkCost()- Overrides:
getWalkCost
in classTile
-
getInventorySubcategory
Description copied from class:Tile
Вызывается через Item- Specified by:
getInventorySubcategory
in classTile
-
generateSeedSalt
public int generateSeedSalt()Description copied from class:Tile
Используется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайла- Overrides:
generateSeedSalt
in classTile
-
sameAs
-
from
-
getSortingScore
- Specified by:
getSortingScore
in classTile
-
isRoadType
public boolean isRoadType()- Specified by:
isRoadType
in classTile
-
addSellItems
- Overrides:
addSellItems
in classTile
-
getPrestigeScore
public double getPrestigeScore()- Specified by:
getPrestigeScore
in classTile
- Returns:
- кол-во очков престижа за продажу. Если 0 или меньше, не будет продан. 1 score = 1 dust
-
canBeUpgraded
public boolean canBeUpgraded()- Overrides:
canBeUpgraded
in classTile
-
drawBatch
public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y) Description copied from class:Tile
Перед отрисовкой врагов и прочего (сразу после отрисовки карты) -
postDrawBatch
public void postDrawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y) Description copied from class:Tile
После отрисовки врагов и прочего- Overrides:
postDrawBatch
in classTile
-
generateUiIcon
public com.badlogic.gdx.scenes.scene2d.Group generateUiIcon(float tileSize) Description copied from class:Tile
Сгенерировать stage2d Group для отображения тайла в UI- Specified by:
generateUiIcon
in classTile
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json)
-