Package com.prineside.tdi2.gates
Class BarrierTypeGate
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Gate
com.prineside.tdi2.GateBarrier
com.prineside.tdi2.gates.BarrierTypeGate
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Gate
Gate.Factory<T extends Gate>, Gate.Pos
-
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Gate
highlightParticleA, highlightParticleB, THICKNESS
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSellItems
(com.badlogic.gdx.utils.Array<ItemStack> toStacks) boolean
canEnemyPass
(EnemyType enemy) void
drawStatic
(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float width, float height) void
fillMapEditorMenu
(com.badlogic.gdx.scenes.scene2d.ui.Table container, MapEditorItemInfoMenu menu) com.badlogic.gdx.scenes.scene2d.Actor
generateIcon
(float size, boolean withShadow) double
int
getSortingScore
(ItemSortingType sortingType) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) boolean
void
toJson
(com.badlogic.gdx.utils.Json json) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.Gate
drawBatch, getBoundingBox, getType, getX, getY, isLeftSide, setPosition
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
blockedEnemies
-
-
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) -
getRarity
-
fillMapEditorMenu
public void fillMapEditorMenu(com.badlogic.gdx.scenes.scene2d.ui.Table container, MapEditorItemInfoMenu menu) - Overrides:
fillMapEditorMenu
in classGate
-
cloneGate
-
addSellItems
- Overrides:
addSellItems
in classGate
-
getPrestigeScore
public double getPrestigeScore()- Specified by:
getPrestigeScore
in classGate
- Returns:
- кол-во очков престижа за продажу. Если 0 или меньше, не будет продан
-
getSortingScore
- Specified by:
getSortingScore
in classGate
-
canEnemyPass
- Specified by:
canEnemyPass
in classGateBarrier
-
generateIcon
public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow) - Specified by:
generateIcon
in classGate
-
drawStatic
public void drawStatic(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float width, float height) - Specified by:
drawStatic
in classGate
-
sameAs
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json)
-