Package com.prineside.tdi2.tiles
Class QuadTile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Tile
com.prineside.tdi2.tiles.QuadTile
- 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) booleanbooleanvoiddrawBatch(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) voiddrawStatic(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) voidfillInventoryWithInfo(Table table, float width) voidfillItemCreationForm(ItemCreationOverlay overlay) voidfillMapEditorMenu(Table container, MapEditorItemInfoMenu menu) voidgenerateUiIcon(float tileSize) Сгенерировать stage2d Group для отображения тайла в UIВызывается через ItemdoublegetQuad()intgetSortingScore(ItemSortingType sortingType) booleanvoidbooleanvoidvoidMethods inherited from class com.prineside.tdi2.Tile
affectedByLuckyWheelMultiplier, canBeSold, cloneTile, createUpgradedTile, drawExtras, drawHoveredRange, drawRoadStatic, drawSelectedRange, generateSeedSalt, getBoundingBox, getData, getDescription, getTitle, getUpgradePriceInAccelerators, getUpgradePriceInGreenPapers, getUpgradePriceInResources, getUserData, getValue, getWalkCost, getX, getY, postDrawBatch, removeExtrasForInventory, sameAsWithExtras, setPos, setUserData, toString, updateCacheMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
isStatic
public boolean isStatic -
color
-
quad
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classTile
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classTile
-
canBeSelected
public boolean canBeSelected()- Overrides:
canBeSelectedin classTile
-
fillMapEditorMenu
- Overrides:
fillMapEditorMenuin classTile
-
fillInventoryWithInfo
- Overrides:
fillInventoryWithInfoin classTile
-
getSortingScore
- Specified by:
getSortingScorein classTile
-
isRoadType
public boolean isRoadType()- Specified by:
isRoadTypein classTile
-
getRarity
-
getInventorySubcategory
Description copied from class:TileВызывается через Item- Specified by:
getInventorySubcategoryin classTile
-
sameAs
-
from
-
getQuad
-
generateUiIcon
Description copied from class:TileСгенерировать stage2d Group для отображения тайла в UI- Specified by:
generateUiIconin classTile
-
toJson
-
drawStatic
public void drawStatic(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) - Overrides:
drawStaticin classTile
-
drawBatch
public void drawBatch(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) -
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
-