Package com.prineside.tdi2.tiles
Class CoreTile.Upgrade
java.lang.Object
com.prineside.tdi2.tiles.CoreTile.Upgrade
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- CoreTile
public static class CoreTile.Upgrade
extends Object
implements com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
int
boolean
com.badlogic.gdx.utils.Array<CoreTile.Upgrade.UpgradeLevel>
-
Constructor Summary
ConstructorsConstructorDescriptionUpgrade()
Upgrade
(boolean starting, boolean isAction, GameValueType gameValueType, TriggeredActionType actionType, com.badlogic.gdx.utils.Array<CoreTile.Upgrade.UpgradeLevel> upgradeLevels, int links, boolean costsCoins) -
Method Summary
Modifier and TypeMethodDescriptionstatic CoreTile.Upgrade
fromJson
(com.badlogic.gdx.utils.JsonValue jsonValue) int
boolean
hasLink
(CoreTile.LinkDirection direction) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) boolean
sameAs
(CoreTile.Upgrade upgrade) void
void
void
setHasLink
(CoreTile.LinkDirection direction, boolean has) void
toJson
(com.badlogic.gdx.utils.Json json) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Field Details
-
starting
public boolean starting -
isAction
public boolean isAction -
costsCoins
public boolean costsCoins -
links
public int links -
upgradeLevels
-
-
Constructor Details
-
Upgrade
public Upgrade() -
Upgrade
public Upgrade(boolean starting, boolean isAction, GameValueType gameValueType, TriggeredActionType actionType, com.badlogic.gdx.utils.Array<CoreTile.Upgrade.UpgradeLevel> upgradeLevels, int links, boolean costsCoins)
-
-
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
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
getGameValueType
-
setGameValueType
-
getActionType
-
setActionType
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
fromJson
-
sameAs
-
generateHash
public int generateHash() -
cloneUpgrade
-
hasLink
-
setHasLink
-