Package com.prineside.tdi2.tiles
Class PlatformTile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Tile
com.prineside.tdi2.tiles.PlatformTile
- 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
FieldsFields 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 TypeMethodDescriptionvoidaddSellItems(Array<ItemStack> toStacks) booleanvoiddrawBonusExtras(Batch batch, float x, float y, float width, float height, boolean withShades, boolean withBonuses) voiddrawExtras(Batch batch, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) voiddrawHoveredRange(Batch batch, RangeCircle rangeCircle) voiddrawSelectedRange(Batch batch, RangeCircle rangeCircle) voiddrawStatic(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) voidfillInventoryWithInfo(Table table, float width) voidfillMapEditorMenu(Table container, MapEditorItemInfoMenu menu) voidintИспользуется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайлаgenerateUiIcon(float tileSize) Сгенерировать stage2d Group для отображения тайла в UIvoidFill array with item data, key = ItemDataType, value = int / enum.ordinal() Called by TileItem#getData()Вызывается через ItemdoubleintgetSortingScore(ItemSortingType sortingType) intintintgetUpgradePriceInResources(ResourceType resourceType) floatgetValue()floatgetWalkCost(boolean walkablePlatforms) booleanvoidRemove buildings from this tile so they are not stored in the inventorybooleanbooleansameAsWithExtras(Tile otherTile) sameAs() but also accounts for towers / modifiers on itvoidRemove the reference to the game state and mark this object as not registered.voidvoidUpdate any cached value that depends on other tiles / buildings / GVsvoidMethods inherited from class com.prineside.tdi2.Tile
affectedByLuckyWheelMultiplier, canBeSelected, canBeSold, cloneTile, drawBatch, drawRoadStatic, fillItemCreationForm, getBoundingBox, getDescription, getTitle, getUserData, getX, getY, postDrawBatch, setPos, setUserData, toStringMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Field Details
-
bonusType
-
bonusLevel
public int bonusLevel -
building
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classTile
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classTile
-
getData
Description copied from class:TileFill array with item data, key = ItemDataType, value = int / enum.ordinal() Called by TileItem#getData() -
fillInventoryWithInfo
- Overrides:
fillInventoryWithInfoin classTile
-
fillMapEditorMenu
- Overrides:
fillMapEditorMenuin classTile
-
generateSeedSalt
public int generateSeedSalt()Description copied from class:TileИспользуется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайла- Overrides:
generateSeedSaltin classTile
-
setUnregistered
public void setUnregistered()Description copied from class:RegistrableRemove the reference to the game state and mark this object as not registered.- Overrides:
setUnregisteredin classRegistrable
-
drawSelectedRange
- Overrides:
drawSelectedRangein classTile
-
drawHoveredRange
- Overrides:
drawHoveredRangein classTile
-
generateUiIcon
Description copied from class:TileСгенерировать stage2d Group для отображения тайла в UI- Specified by:
generateUiIconin classTile
-
getRarity
-
getWalkCost
public float getWalkCost(boolean walkablePlatforms) - Overrides:
getWalkCostin classTile
-
getInventorySubcategory
Description copied from class:TileВызывается через Item- Specified by:
getInventorySubcategoryin classTile
-
from
-
updateCache
public void updateCache()Description copied from class:TileUpdate any cached value that depends on other tiles / buildings / GVs- Overrides:
updateCachein classTile
-
drawStatic
public void drawStatic(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) - Overrides:
drawStaticin classTile
-
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
-
createUpgradedTile
- Overrides:
createUpgradedTilein classTile
-
getUpgradePriceInGreenPapers
public int getUpgradePriceInGreenPapers()- Overrides:
getUpgradePriceInGreenPapersin classTile
-
getUpgradePriceInAccelerators
public int getUpgradePriceInAccelerators()- Overrides:
getUpgradePriceInAcceleratorsin classTile
-
getUpgradePriceInResources
- Overrides:
getUpgradePriceInResourcesin classTile
-
getSortingScore
- Specified by:
getSortingScorein classTile
-
isRoadType
public boolean isRoadType()- Specified by:
isRoadTypein classTile
-
toJson
-
drawBonusExtras
public void drawBonusExtras(Batch batch, float x, float y, float width, float height, boolean withShades, boolean withBonuses) -
drawExtras
public void drawExtras(Batch batch, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) - Overrides:
drawExtrasin classTile
-
sameAs
-
removeExtrasForInventory
Description copied from class:TileRemove buildings from this tile so they are not stored in the inventory- Overrides:
removeExtrasForInventoryin classTile
-
sameAsWithExtras
Description copied from class:TilesameAs() but also accounts for towers / modifiers on it- Overrides:
sameAsWithExtrasin classTile
-