Package com.prineside.tdi2
Class Building
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Building
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
Placed on PlatformPiles
-
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Building
void
drawBase
(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, int x, int y, MapRenderingSystem.DrawMode drawMode) void
drawHoveredRange
(com.badlogic.gdx.graphics.g2d.Batch batch, RangeCircle rangeCircle) void
drawSelectedRange
(com.badlogic.gdx.graphics.g2d.Batch batch, RangeCircle rangeCircle) static Building
fromJson
(com.badlogic.gdx.utils.JsonValue jsonValue) getTile()
void
void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
void
setTile
(PlatformTile tile) 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
-
buildingType
-
-
Constructor Details
-
Building
-
-
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
-
cloneBuilding
-
getTile
- Returns:
- null, если здание уже продано
-
setTile
-
drawBase
public void drawBase(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, int x, int y, MapRenderingSystem.DrawMode drawMode) -
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
placedOnMap
public void placedOnMap() -
removedFromMap
public void removedFromMap() -
drawSelectedRange
-
drawHoveredRange
-
fromJson
-