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 ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Gate
Gate.Factory<T extends Gate>, Gate.Pos -
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final Color[]static final String[]static final intstatic final intFields inherited from class com.prineside.tdi2.Gate
highlightParticleA, highlightParticleB, THICKNESSFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSellItems(Array<ItemStack> toStacks) voidvoiddrawStatic(Batch batch, float x, float y, float width, float height) voidfillMapEditorMenu(Table container, MapEditorItemInfoMenu menu) generateIcon(float size, boolean detailed) doubleintgetSortingScore(ItemSortingType sortingType) voidbooleanvoidRemove the reference to the game state and mark this object as not registered.voidtoString()voidMethods inherited from class com.prineside.tdi2.Gate
getBoundingBox, getType, getX, getY, isLeftSide, setPositionMethods 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:
writein interfaceKryoSerializable- Overrides:
writein classGate
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classGate
-
getRarity
-
cloneGate
-
addSellItems
- Overrides:
addSellItemsin classGate
-
fillMapEditorMenu
- Overrides:
fillMapEditorMenuin classGate
-
getPrestigeScore
public double getPrestigeScore()- Specified by:
getPrestigeScorein classGate- Returns:
- amount of prestige points for selling it. If value is <= 0, it won't be sold
-
getSortingScore
- Specified by:
getSortingScorein classGate
-
setUnregistered
public void setUnregistered()Description copied from class:RegistrableRemove the reference to the game state and mark this object as not registered.- Overrides:
setUnregisteredin classRegistrable
-
generateIcon
- Specified by:
generateIconin classGate
-
drawStatic
- Specified by:
drawStaticin classGate
-
drawBatch
-
sameAs
-
toJson
-
toString
-