Class MetaphorBossWaveProcessor
java.lang.Object
com.prineside.tdi2.waves.processors.MetaphorBossWaveProcessor
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,Listener<EnemySpawn>,WaveProcessor
public class MetaphorBossWaveProcessor
extends Object
implements WaveProcessor, com.esotericsoftware.kryo.KryoSerializable, Listener<EnemySpawn>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic final classNested classes/interfaces inherited from interface com.prineside.tdi2.WaveProcessor
WaveProcessor.WaveProcessorFactory<T extends WaveProcessor> -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) com.badlogic.gdx.utils.Array<EnemyGroup>generateEnemyGroups(int waveNumber, int difficulty) floatvoidhandleEvent(EnemySpawn event) booleanisDone()voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) setup(GameSystemProvider S, int waveNumber, int difficulty) Создает волну, в которой является процессором.voidupdate(float deltaTime) Вызывается, если сейчас идет волна с этим процессором в WaveSystem.update()voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-
generateEnemyGroups
- Specified by:
generateEnemyGroupsin interfaceWaveProcessor
-
setup
Description copied from interface:WaveProcessorСоздает волну, в которой является процессором. Здесь можно начать слушать события систем.- Specified by:
setupin interfaceWaveProcessor
-
getNextWaveDelayMultiplier
public float getNextWaveDelayMultiplier()- Specified by:
getNextWaveDelayMultiplierin interfaceWaveProcessor- Returns:
- множитель времени до следующей после босса волны (чем медленнее идет босс, тем больше это значение должно быть)
-
update
public void update(float deltaTime) Description copied from interface:WaveProcessorВызывается, если сейчас идет волна с этим процессором в WaveSystem.update()- Specified by:
updatein interfaceWaveProcessor
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceWaveProcessor- Returns:
- true, когда работа закончена и не требуется вызывать update()
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) - Specified by:
drawin interfaceWaveProcessor
-
handleEvent
- Specified by:
handleEventin interfaceListener<EnemySpawn>
-