Package com.prineside.tdi2.gates
Class TeleportGate
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Gate
com.prineside.tdi2.gates.TeleportGate
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.prineside.tdi2.Gate
Gate.Factory<T extends Gate>, Gate.Pos
-
Field Summary
Modifier and TypeFieldDescriptionint
static final Color[]
static final String[]
static final int
static final int
Fields 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
(Array<ItemStack> toStacks) void
void
drawStatic
(Batch batch, float x, float y, float width, float height) void
fillMapEditorMenu
(Table container, MapEditorItemInfoMenu menu) generateIcon
(float size, boolean detailed) double
int
getSortingScore
(ItemSortingType sortingType) void
boolean
void
Remove the reference to the game state and mark this object as not registered.void
toString()
void
Methods inherited from class com.prineside.tdi2.Gate
getBoundingBox, getType, getX, getY, isLeftSide, setPosition
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Field Details
-
INDEX_COLORS
-
INDEX_NAMES
-
MAX_INDEX
public static final int MAX_INDEX -
MAX_INDEX_FOR_LOOT
public static final int MAX_INDEX_FOR_LOOT- See Also:
-
index
public int index
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classGate
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classGate
-
getRarity
-
cloneGate
-
addSellItems
- Overrides:
addSellItems
in classGate
-
fillMapEditorMenu
- Overrides:
fillMapEditorMenu
in classGate
-
getPrestigeScore
public double getPrestigeScore()- Specified by:
getPrestigeScore
in classGate
- Returns:
- amount of prestige points for selling it. If value is <= 0, it won't be sold
-
getSortingScore
- Specified by:
getSortingScore
in classGate
-
setUnregistered
public void setUnregistered()Description copied from class:Registrable
Remove the reference to the game state and mark this object as not registered.- Overrides:
setUnregistered
in classRegistrable
-
generateIcon
- Specified by:
generateIcon
in classGate
-
drawStatic
- Specified by:
drawStatic
in classGate
-
drawBatch
-
sameAs
-
toJson
-
toString
-