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:
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, visibleOnScreen
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGameValue
(GameValueConfig config) void
addSellItems
(Array<ItemStack> toStacks) boolean
void
drawBatch
(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) void
fillInventoryWithInfo
(Table table, float width) void
fillMapEditorMenu
(Table container, MapEditorItemInfoMenu menu) void
int
Используется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайлаgenerateUiIcon
(float tileSize) Сгенерировать stage2d Group для отображения тайла в UIВызывается через Itemint
double
int
getSortingScore
(ItemSortingType sortingType) float
getWalkCost
(boolean walkablePlatforms) boolean
boolean
boolean
boolean
void
postDrawBatch
(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) void
void
removeGameValue
(GameValueConfig config) boolean
void
setDisableAbilities
(boolean disabled) void
setOverloadLevel
(int overloadLevel) void
setUseStockGameValues
(boolean use) void
showHitEffect
(Vector2 hitFrom) void
void
void
void
Methods inherited from class com.prineside.tdi2.Tile
affectedByLuckyWheelMultiplier, canBeSelected, canBeSold, cloneTile, createUpgradedTile, drawExtras, drawHoveredRange, drawRoadStatic, drawSelectedRange, drawStatic, fillItemCreationForm, getBoundingBox, getData, getDescription, getTitle, getUpgradePriceInAccelerators, getUpgradePriceInGreenPapers, getUpgradePriceInResources, getUserData, getValue, getX, getY, removeExtrasForInventory, sameAsWithExtras, setPos, setUserData, toString, updateCache
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Method Details
-
getBaseColor
-
getCoreColor
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classTile
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classTile
-
getOverloadLevel
public int getOverloadLevel() -
setOverloadLevel
public void setOverloadLevel(int overloadLevel) -
showHitEffect
-
startExplosionEffect
public void startExplosionEffect() -
fillMapEditorMenu
- Overrides:
fillMapEditorMenu
in classTile
-
fillInventoryWithInfo
- 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(boolean walkablePlatforms) - 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(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) -
postDrawBatch
public void postDrawBatch(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) - Overrides:
postDrawBatch
in classTile
-
generateUiIcon
Description copied from class:Tile
Сгенерировать stage2d Group для отображения тайла в UI- Specified by:
generateUiIcon
in classTile
-
toJson
-