Package com.prineside.tdi2.tiles
Class XmMusicTrackTile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Tile
com.prineside.tdi2.tiles.XmMusicTrackTile
- 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
addSellItems
(Array<ItemStack> toStacks) void
drawExtras
(Batch batch, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) void
drawStatic
(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) void
fillInventoryWithInfo
(Table table, float width) void
fillMapEditorMenu
(Table container, MapEditorItemInfoMenu menu) void
static long
int
Используется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайлаgenerateUiIcon
(float tileSize) Сгенерировать stage2d Group для отображения тайла в UIlong
getId()
Color[]
Вызывается через Itemdouble
int
getSortingScore
(ItemSortingType sortingType) boolean
void
boolean
void
setId
(long id) void
void
toString()
void
Methods inherited from class com.prineside.tdi2.Tile
affectedByLuckyWheelMultiplier, canBeSelected, canBeSold, canBeUpgraded, cloneTile, createUpgradedTile, drawBatch, drawHoveredRange, drawRoadStatic, drawSelectedRange, fillItemCreationForm, getBoundingBox, getData, getDescription, getTitle, getUpgradePriceInAccelerators, getUpgradePriceInGreenPapers, getUpgradePriceInResources, getUserData, getValue, getWalkCost, getX, getY, postDrawBatch, removeExtrasForInventory, sameAsWithExtras, setPos, setUserData, updateCache
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classTile
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classTile
-
fillMapEditorMenu
- Overrides:
fillMapEditorMenu
in classTile
-
getTitleCached
-
getDescriptionCached
-
fillInventoryWithInfo
- Overrides:
fillInventoryWithInfo
in classTile
-
generateNewId
public static long generateNewId() -
getId
public long getId() -
setId
public void setId(long id) -
getTrackBase64
- Returns:
- null, если не установлено
-
getModule
- Returns:
- Module / null
-
getIdColors
- Returns:
- ID_COLORS_COUNT цвета для отображения тайла
-
generateSeedSalt
public int generateSeedSalt()Description copied from class:Tile
Используется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайла- Overrides:
generateSeedSalt
in classTile
-
sameAs
-
getSortingScore
- Specified by:
getSortingScore
in classTile
-
isRoadType
public boolean isRoadType()- Specified by:
isRoadType
in classTile
-
setTrack
-
getRarity
-
getInventorySubcategory
Description copied from class:Tile
Вызывается через Item- Specified by:
getInventorySubcategory
in classTile
-
from
-
drawStatic
public void drawStatic(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) - Overrides:
drawStatic
in classTile
-
drawExtras
public void drawExtras(Batch batch, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) - Overrides:
drawExtras
in classTile
-
generateUiIcon
Description copied from class:Tile
Сгенерировать stage2d Group для отображения тайла в UI- Specified by:
generateUiIcon
in classTile
-
toJson
-
addSellItems
- Overrides:
addSellItems
in classTile
-
getPrestigeScore
public double getPrestigeScore()- Specified by:
getPrestigeScore
in classTile
- Returns:
- кол-во очков престижа за продажу. Если 0 или меньше, не будет продан. 1 score = 1 dust
-
toString
-