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:
 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
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.graphics.Colorstatic floatfloatbooleanbooleanFields inherited from class com.prineside.tdi2.Tile
boundingBox, center, enemyCount, highlightParticleA, highlightParticleB, type, userData, visibleOnScreenFields inherited from class com.prineside.tdi2.Registrable
S - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddSellItems(com.badlogic.gdx.utils.Array<ItemStack> toStacks) booleanbooleanvoiddrawStatic(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) Отрисовать статическую графику, которая не будет меняться с момента загрузки карты.voidfillInventoryWithInfo(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) voidfillItemCreationForm(ItemCreationOverlay overlay) voidfillMapEditorMenu(com.badlogic.gdx.scenes.scene2d.Group container, MapEditorItemInfoMenu menu) voidcom.badlogic.gdx.scenes.scene2d.GroupgenerateUiIcon(float tileSize) Сгенерировать stage2d Group для отображения тайла в UIlonggetId()Вызывается через ItemdoubleintgetSortingScore(ItemSortingType sortingType) com.badlogic.gdx.graphics.g2d.TextureRegionbooleanvoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidremoveData(String key) booleanvoidvoidsetId(long id) voidtoJson(com.badlogic.gdx.utils.Json json) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.Tile
affectedByLuckyWheelMultiplier, canBeSold, cloneTile, createUpgradedTile, drawBatch, drawExtras, drawHoveredRange, drawRoadStatic, drawSelectedRange, generateSeedSalt, getData, getMap, getQuality, getTitle, getUpgradePriceInAccelerators, getUpgradePriceInGreenPapers, getUpgradePriceInResources, getUserData, getValue, getWalkCost, getX, getY, postDrawBatch, setMap, setPos, setUserData, toString, traverseNeighbourTiles, traverseNeighbourTilesAndThisMethods 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
public com.badlogic.gdx.graphics.Color color 
 - 
 - 
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)  - 
getId
public long getId() - 
setId
public void setId(long id)  - 
getDescription
- Overrides:
 getDescriptionin classTile
 - 
getData
 - 
canBeSelected
public boolean canBeSelected()- Overrides:
 canBeSelectedin classTile
 - 
removeData
 - 
setData
 - 
fillMapEditorMenu
public void fillMapEditorMenu(com.badlogic.gdx.scenes.scene2d.Group container, MapEditorItemInfoMenu menu) - Overrides:
 fillMapEditorMenuin classTile
 - 
fillInventoryWithInfo
public void fillInventoryWithInfo(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width) - 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
 - 
getTexture
public com.badlogic.gdx.graphics.g2d.TextureRegion getTexture() - 
generateUiIcon
public com.badlogic.gdx.scenes.scene2d.Group generateUiIcon(float tileSize) Description copied from class:TileСгенерировать stage2d Group для отображения тайла в UI- Specified by:
 generateUiIconin classTile
 - 
toJson
public void toJson(com.badlogic.gdx.utils.Json json)  - 
drawStatic
public void drawStatic(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) Description copied from class:TileОтрисовать статическую графику, которая не будет меняться с момента загрузки карты.- Overrides:
 drawStaticin classTile
 - 
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
 
 -