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:
KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
Nested classes/interfaces inherited from class com.prineside.tdi2.Tile
Tile.Factory<T extends Tile>, Tile.Pos
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
float
float
float
int
static final int
static final int
static final int
float
int
static final int
static final int
static final int
static final int
boolean
float
static final int
static final int
static final int
static final int
static final int
float
boolean
boolean
float
float
float
Fields inherited from class com.prineside.tdi2.Tile
boundingBox, center, enemyCount, highlightParticleA, highlightParticleB, type, visibleOnScreen
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSellItems
(Array<ItemStack> toStacks) boolean
boolean
void
drawBatch
(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) void
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 для отображения тайла в UIВызывается через Itemdouble
int
getSortingScore
(ItemSortingType sortingType) void
Must be called each time after any of this configuration is changed: - spectrum frequencies - bandsPerOctave - maxValueEasing - minBandwidthboolean
void
boolean
void
void
Methods 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, updateCache
Methods 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
-
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
-
-
Constructor Details
-
EqualizerTile
public EqualizerTile()
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classTile
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classTile
-
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:
canBeSelected
in classTile
-
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
-
generateUiIcon
Description copied from class:Tile
Сгенерировать stage2d Group для отображения тайла в UI- Specified by:
generateUiIcon
in classTile
-
toJson
-
drawFancy
-
drawStatic
public void drawStatic(Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode) - Overrides:
drawStatic
in classTile
-
drawBatch
public void drawBatch(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode) -
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
-