Package com.prineside.tdi2.systems
Class ModifierSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.ModifierSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.utils.DelayedRemovalArray<Modifier>
int[]
int[]
int[]
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
buildModifier
(ModifierType modifierType, int x, int y) void
buildModifierAction
(ModifierType modifierType) На текущем выбранном тайлеvoid
buildModifierAction
(ModifierType modifierType, int x, int y) void
customModifierButtonAction
(int x, int y, int mapX, int mapY) void
customModifierButtonAction
(Modifier modifier, int mapX, int mapY) void
dispose()
Releases all resources of this object.void
drawBatch
(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) void
drawBatchAdditive
(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) int
getBuildableModifiersCount
(ModifierType modifierType) int
getBuildPrice
(ModifierType modifierType) int
getMaxModifiersCount
(ModifierType modifierType) getProcessor
(ModifierType modifierType) boolean
isRegistered
(Modifier modifier) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
sellModifier
(Modifier modifier) void
sellModifierAction
(Modifier modifier) void
setup()
Произвести начальную настройку системы.void
update
(float deltaTime) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, profileUpdate
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
modifiers
-
modifiersBuiltByType
public int[] modifiersBuiltByType -
modifiersBuiltByTypeAllTime
public int[] modifiersBuiltByTypeAllTime -
modifiersSoldByTypeAllTime
public int[] modifiersSoldByTypeAllTime -
listeners
-
-
Constructor Details
-
ModifierSystem
public ModifierSystem()
-
-
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
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
setup
public void setup()Description copied from class:GameSystem
Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
setup
in classGameSystem
-
getProcessor
-
isRegistered
-
getBuildPrice
-
getMaxModifiersCount
- Returns:
- количество майнеров, которые вообще могут быть построены
-
getBuildableModifiersCount
-
buildModifierAction
На текущем выбранном тайле -
buildModifierAction
-
customModifierButtonAction
-
customModifierButtonAction
public void customModifierButtonAction(int x, int y, int mapX, int mapY) -
buildModifier
-
sellModifierAction
-
sellModifier
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classGameSystem
-
update
public void update(float deltaTime) - Overrides:
update
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-
drawBatch
public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) -
drawBatchAdditive
public void drawBatchAdditive(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime)
-