Class BrootBossWaveProcessor
java.lang.Object
com.prineside.tdi2.waves.processors.BrootBossWaveProcessor
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,Listener<EnemySpawn>
,WaveProcessor
public final class BrootBossWaveProcessor
extends Object
implements WaveProcessor, com.esotericsoftware.kryo.KryoSerializable, Listener<EnemySpawn>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface com.prineside.tdi2.WaveProcessor
WaveProcessor.WaveProcessorFactory<T extends WaveProcessor>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
static final float
static final float
static final float
static final float
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) com.badlogic.gdx.utils.Array<EnemyGroup>
generateEnemyGroups
(int waveNumber, int difficulty) float
void
handleEvent
(EnemySpawn event) 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)
-
Field Details
-
NEXT_WAVE_DELAY_MULT
public static final float NEXT_WAVE_DELAY_MULT- See Also:
-
HEALTH_MULT
public static final float HEALTH_MULT- See Also:
-
DEFAULT_SPEED
public static final float DEFAULT_SPEED- See Also:
-
RAGE_HP_COEFF
public static final float RAGE_HP_COEFF- See Also:
-
RAGE_HP_RESTORE_MULT
public static final float RAGE_HP_RESTORE_MULT- See Also:
-
-
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 interfaceWaveProcessor
-
setup
Description copied from interface:WaveProcessor
Создает волну, в которой является процессором. Здесь можно начать слушать события систем.- Specified by:
setup
in interfaceWaveProcessor
-
getNextWaveDelayMultiplier
public float getNextWaveDelayMultiplier()- Specified by:
getNextWaveDelayMultiplier
in interfaceWaveProcessor
- Returns:
- множитель времени до следующей после босса волны (чем медленнее идет босс, тем больше это значение должно быть)
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) - Specified by:
draw
in interfaceWaveProcessor
-
update
public void update(float deltaTime) Description copied from interface:WaveProcessor
Вызывается, если сейчас идет волна с этим процессором в WaveSystem.update()- Specified by:
update
in interfaceWaveProcessor
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceWaveProcessor
- Returns:
- true, когда работа закончена и не требуется вызывать update()
-
handleEvent
- Specified by:
handleEvent
in interfaceListener<EnemySpawn>
-