#include <Spawn.hpp>
Inheritance diagram for gme::SpawnSystem:
Collaboration diagram for gme::SpawnSystem:Public Member Functions | |
| SpawnSystem (const std::shared_ptr< eng::IRenderer > &renderer) | |
| ~SpawnSystem () override=default | |
| SpawnSystem (const SpawnSystem &)=delete | |
| SpawnSystem & | operator= (const SpawnSystem &)=delete |
| SpawnSystem (SpawnSystem &&)=delete | |
| SpawnSystem & | operator= (SpawnSystem &&)=delete |
| bool | isEnable () override |
| void | setEnable (const bool enable) override |
| void | update (ecs::Registry ®istry, float dt) override |
Public Member Functions inherited from ecs::ISystem | |
| virtual | ~ISystem ()=default |
Static Private Member Functions | |
| static void | spawnEnemy (ecs::Registry ®istry) |
| static void | spawnWave (ecs::Registry ®istry) |
Private Attributes | |
| const std::shared_ptr< eng::IRenderer > & | m_renderer |
| float | m_enemySpawnTimer = 0.0F |
| float | m_waveTimer = 0.0F |
|
inlineexplicit |
|
overridedefault |
|
delete |
|
delete |
|
inlineoverridevirtual |
Reimplemented from ecs::ASystem.
|
delete |
|
delete |
|
inlineoverridevirtual |
Reimplemented from ecs::ASystem.
|
inlinestaticprivate |
Definition at line 57 of file Spawn.hpp.
References utl::GameConfig::Enemy::Easy::ANIMATION_DURATION, utl::GameConfig::Enemy::Easy::ANIMATION_FRAMES, utl::calculateHitboxOffsetsRelative(), ecs::Registry::createEntity(), utl::GameConfig::Enemy::Easy::DAMAGE, utl::GameConfig::Hitbox::ENEMY_RADIUS, utl::GameConfig::Enemy::Easy::FRAMES_PER_ROW, utl::GameConfig::Enemy::Easy::HEALTH, utl::GameConfig::Screen::MAX_Y, utl::GameConfig::Screen::MIN_Y, utl::GameConfig::Enemy::Easy::SCALE, utl::GameConfig::Enemy::Easy::SHOOT_COOLDOWN, utl::GameConfig::Screen::SPAWN_X, utl::GameConfig::Enemy::Easy::SPEED, utl::GameConfig::Enemy::Easy::SPRITE_HEIGHT, utl::GameConfig::Enemy::Easy::SPRITE_WIDTH, utl::Path::Texture::TEXTURE_ENEMY_EASY, and ecs::Registry::EntityBuilder::with().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestaticprivate |
Definition at line 90 of file Spawn.hpp.
References utl::GameConfig::Enemy::Easy::ANIMATION_DURATION, utl::GameConfig::Enemy::Easy::ANIMATION_FRAMES, utl::calculateHitboxOffsetsRelative(), ecs::Registry::createEntity(), utl::GameConfig::Enemy::Easy::DAMAGE, utl::GameConfig::Hitbox::ENEMY_RADIUS, utl::GameConfig::Enemy::Easy::FRAMES_PER_ROW, utl::GameConfig::Enemy::Easy::HEALTH, utl::GameConfig::Screen::MAX_Y, utl::GameConfig::Screen::MIN_Y, utl::GameConfig::Enemy::Easy::SCALE, utl::GameConfig::Enemy::Easy::SHOOT_COOLDOWN, utl::GameConfig::Screen::SPAWN_X, utl::GameConfig::Enemy::Easy::SPEED, utl::GameConfig::Enemy::Easy::SPRITE_HEIGHT, utl::GameConfig::Enemy::Easy::SPRITE_WIDTH, utl::Path::Texture::TEXTURE_ENEMY_EASY, and ecs::Registry::EntityBuilder::with().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtual |
Implements ecs::ISystem.
Definition at line 34 of file Spawn.hpp.
References m_enemySpawnTimer, m_waveTimer, utl::GameConfig::Enemy::Easy::SPAWN_RATE, spawnEnemy(), and spawnWave().
Here is the call graph for this function:
|
private |
|
private |
|
private |