Class BrootBossWaveProcessor
java.lang.Object
com.prineside.tdi2.WaveProcessor
com.prineside.tdi2.waves.processors.BrootBossWaveProcessor
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
public class BrootBossWaveProcessor
extends WaveProcessor
implements com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from class com.prineside.tdi2.WaveProcessor
WaveProcessor.WaveProcessorFactory<T extends WaveProcessor>
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.utils.Array<EnemyGroup>
generateEnemyGroups
(int waveNumber, int difficulty) float
boolean
isDone()
void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) setup
(GameSystemProvider S, int waveNumber, int difficulty) Создает волну, в которой является процессором.void
update
(float deltaTime) Вызывается, если сейчас идет волна с этим процессором в WaveSystem.update()void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.WaveProcessor
calculateDefaultBossWaveCoinsSum, calculateDefaultBossWaveExpSum, calculateDefaultBossWaveScoreSum
-
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
-
generateEnemyGroups
- Specified by:
generateEnemyGroups
in classWaveProcessor
-
setup
Description copied from class:WaveProcessor
Создает волну, в которой является процессором. Здесь можно начать слушать события систем.- Specified by:
setup
in classWaveProcessor
-
getNextWaveDelayMultiplier
public float getNextWaveDelayMultiplier()- Overrides:
getNextWaveDelayMultiplier
in classWaveProcessor
- Returns:
- множитель времени до следующей после босса волны (чем медленнее идет босс, тем больше это значение должно быть)
-
update
public void update(float deltaTime) Description copied from class:WaveProcessor
Вызывается, если сейчас идет волна с этим процессором в WaveSystem.update()- Overrides:
update
in classWaveProcessor
-
isDone
public boolean isDone()- Specified by:
isDone
in classWaveProcessor
- Returns:
- true, когда работа закончена и не требуется вызывать update()
-