Package com.prineside.tdi2.tiles
Class DummyTile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Tile
com.prineside.tdi2.tiles.DummyTile
- 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
FieldsModifier and TypeFieldDescriptionstatic float
float
boolean
boolean
Fields inherited from class com.prineside.tdi2.Tile
boundingBox, center, enemyCount, highlightParticleA, highlightParticleB, towerDisablingEnemyCount, type, visibleOnScreen
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSellItems
(Array<ItemStack> toStacks) boolean
boolean
void
drawStatic
(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) void
fillInventoryWithInfo
(Table table, float width) void
fillItemCreationForm
(ItemCreationOverlay overlay) void
fillMapEditorMenu
(Table container, MapEditorItemInfoMenu menu) void
generateUiIcon
(float tileSize) Сгенерировать stage2d Group для отображения тайла в UIlong
getId()
Вызывается через Itemdouble
int
getSortingScore
(ItemSortingType sortingType) boolean
void
void
removeData
(String key) boolean
void
void
setId
(long id) void
void
Methods inherited from class com.prineside.tdi2.Tile
affectedByLuckyWheelMultiplier, canBeSold, cloneTile, createUpgradedTile, drawBatch, drawExtras, drawHoveredRange, drawRoadStatic, drawSelectedRange, generateSeedSalt, getBoundingBox, getData, getTitle, getUpgradePriceInAccelerators, getUpgradePriceInGreenPapers, getUpgradePriceInResources, getUserData, getValue, getWalkCost, getX, getY, postDrawBatch, removeExtrasForInventory, sameAsWithExtras, setPos, setUserData, toString, updateCache
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
DEFAULT_SCALE
public static float DEFAULT_SCALE -
data
-
selectable
public boolean selectable -
visible
public boolean visible -
iconScale
public float iconScale -
icon
-
description
-
color
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classTile
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classTile
-
getId
public long getId() -
setId
public void setId(long id) -
getDescription
- Overrides:
getDescription
in classTile
-
getData
-
canBeSelected
public boolean canBeSelected()- Overrides:
canBeSelected
in classTile
-
removeData
-
setData
-
fillMapEditorMenu
- Overrides:
fillMapEditorMenu
in classTile
-
fillInventoryWithInfo
- Overrides:
fillInventoryWithInfo
in classTile
-
getSortingScore
- Specified by:
getSortingScore
in classTile
-
isRoadType
public boolean isRoadType()- Specified by:
isRoadType
in classTile
-
getRarity
-
getInventorySubcategory
Description copied from class:Tile
Вызывается через Item- Specified by:
getInventorySubcategory
in classTile
-
sameAs
-
from
-
getTexture
-
generateUiIcon
Description copied from class:Tile
Сгенерировать stage2d Group для отображения тайла в UI- Specified by:
generateUiIcon
in classTile
-
toJson
-
drawStatic
public void drawStatic(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) - Overrides:
drawStatic
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
-