Package com.prineside.tdi2
Class Gate
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Gate
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
- Direct Known Subclasses:
GateBarrier
,TeleportGate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect
com.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect
static final float
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSellItems
(com.badlogic.gdx.utils.Array<ItemStack> toStacks) abstract Gate
void
drawBatch
(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y) abstract void
drawStatic
(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, int x, int y) abstract com.badlogic.gdx.scenes.scene2d.Actor
generateIcon
(float size, boolean detailed) com.badlogic.gdx.math.Rectangle
abstract double
abstract RarityType
getSide()
abstract int
getSortingScore
(ItemSortingType sortingType) getType()
int
getX()
int
getY()
boolean
void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) boolean
void
setPosition
(int x, int y, Gate.Side side) 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.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
THICKNESS
public static final float THICKNESS- See Also:
-
highlightParticleA
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect highlightParticleA -
highlightParticleB
public com.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect highlightParticleB
-
-
Constructor Details
-
Gate
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
write
in classRegistrable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
read
in classRegistrable
-
getType
-
getRarity
-
cloneGate
-
addSellItems
-
getBoundingBox
public com.badlogic.gdx.math.Rectangle getBoundingBox() -
getPrestigeScore
public abstract double getPrestigeScore()- Returns:
- кол-во очков престижа за продажу. Если 0 или меньше, не будет продан
-
getSortingScore
-
generateIcon
public abstract com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean detailed) -
drawStatic
public abstract void drawStatic(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, int x, int y) -
drawBatch
public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y) -
sameAs
-
getX
public int getX() -
getY
public int getY() -
getSide
-
isLeftSide
public boolean isLeftSide() -
setPosition
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json)
-