Package com.prineside.tdi2.tiles
Class EqualizerTile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Tile
com.prineside.tdi2.tiles.EqualizerTile
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classNested classes/interfaces inherited from class com.prineside.tdi2.Tile
Tile.Factory<T extends Tile>, Tile.Pos -
Field Summary
FieldsModifier and TypeFieldDescriptionintfloatfloatfloatintstatic final intstatic final intstatic final intcom.badlogic.gdx.graphics.Colorcom.badlogic.gdx.graphics.Colorfloatintstatic final intstatic final intstatic final intstatic final intbooleanfloatstatic final intstatic final intstatic final intstatic final intstatic final intfloatbooleanbooleanfloatfloatfloatcom.badlogic.gdx.utils.Array<MusicManager.FrequencyRange>Fields 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) booleanbooleanvoiddrawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y) Перед отрисовкой врагов и прочего (сразу после отрисовки карты)voiddrawStatic(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 для отображения тайла в UIВызывается через ItemdoubleintgetSortingScore(ItemSortingType sortingType) voidMust be called each time after any of this configuration is changed: - spectrum frequencies - bandsPerOctave - maxValueEasing - minBandwidthbooleanvoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) booleanvoidtoJson(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, drawExtras, drawHoveredRange, drawRoadStatic, drawSelectedRange, generateSeedSalt, getData, getDescription, 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
-
CHANNEL_LEFT
public static final int CHANNEL_LEFT- See Also:
-
CHANNEL_RIGHT
public static final int CHANNEL_RIGHT- See Also:
-
CHANNEL_BOTH
public static final int CHANNEL_BOTH- See Also:
-
DIRECTION_TOP
public static final int DIRECTION_TOP- See Also:
-
DIRECTION_BOTTOM
public static final int DIRECTION_BOTTOM- See Also:
-
DIRECTION_LEFT
public static final int DIRECTION_LEFT- See Also:
-
DIRECTION_RIGHT
public static final int DIRECTION_RIGHT- See Also:
-
INTERPOLATION_LINEAR
public static final int INTERPOLATION_LINEAR- See Also:
-
INTERPOLATION_POW2
public static final int INTERPOLATION_POW2- See Also:
-
INTERPOLATION_POW3
public static final int INTERPOLATION_POW3- See Also:
-
INTERPOLATION_EXP5
public static final int INTERPOLATION_EXP5- See Also:
-
INTERPOLATION_EXP10
public static final int INTERPOLATION_EXP10- See Also:
-
drawAlways
public boolean drawAlways -
barInterpolation
public int barInterpolation -
spectrumDropoff
public float spectrumDropoff -
channel
public int channel -
cutout
public float cutout -
direction
public int direction -
colorLow
public com.badlogic.gdx.graphics.Color colorLow -
colorHigh
public com.badlogic.gdx.graphics.Color colorHigh -
barsWidth
public float barsWidth -
barsHeight
public float barsHeight -
revertBars
public boolean revertBars -
particlesEnabled
public boolean particlesEnabled -
spectrumFrequencies
-
maxValueEasing
public float maxValueEasing -
fixedMaxValue
public float fixedMaxValue -
barSpacing
public float barSpacing -
shiftX
public float shiftX -
shiftY
public float shiftY -
spectrumConfig
-
-
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) -
handleConfigChanged
public void handleConfigChanged()Must be called each time after any of this configuration is changed: - spectrum frequencies - bandsPerOctave - maxValueEasing - minBandwidth -
canBeSelected
public boolean canBeSelected()- Overrides:
canBeSelectedin classTile
-
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
-
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
-
drawBatch
public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y) Description copied from class:TileПеред отрисовкой врагов и прочего (сразу после отрисовки карты) -
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
-