Handles projectile creation and management. More...
#include <ProjectileManager.hpp>
Collaboration diagram for gme::ProjectileManager:Public Member Functions | |
| ProjectileManager ()=default | |
| ~ProjectileManager ()=default | |
| ProjectileManager (const ProjectileManager &)=delete | |
| ProjectileManager & | operator= (const ProjectileManager &)=delete |
| ProjectileManager (ProjectileManager &&)=delete | |
| ProjectileManager & | operator= (ProjectileManager &&)=delete |
| ProjectileManager ()=default | |
| ~ProjectileManager ()=default | |
| ProjectileManager (const ProjectileManager &)=delete | |
| ProjectileManager & | operator= (const ProjectileManager &)=delete |
| ProjectileManager (ProjectileManager &&)=delete | |
| ProjectileManager & | operator= (ProjectileManager &&)=delete |
Static Public Member Functions | |
| static ecs::Entity | createBasicProjectile (ecs::Registry ®istry, float x, float y, float velocityX, float velocityY) |
| Create a basic projectile. | |
| static ecs::Entity | createSuperchargedProjectile (ecs::Registry ®istry, float x, float y, float velocityX, float velocityY) |
| Create a supercharged projectile. | |
Static Private Member Functions | |
| static ecs::Entity | createProjectile (ecs::Registry ®istry, ecs::Projectile::Type type, float x, float y, float velocityX, float velocityY) |
| Create a projectile with given parameters. | |
Handles projectile creation and management.
Definition at line 19 of file ProjectileManager.hpp.
|
default |
|
default |
|
delete |
|
delete |
|
default |
|
default |
|
delete |
|
delete |
|
static |
Create a basic projectile.
| registry | The ECS registry |
| x | X position |
| y | Y position |
| velocityX | X velocity |
| velocityY | Y velocity |
Definition at line 8 of file projectileManager.cpp.
References ecs::Projectile::BASIC, and createProjectile().
Referenced by gme::WeaponSystem::tryFireBasic().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Create a projectile with given parameters.
| registry | The ECS registry |
| type | Projectile type |
| x | X position |
| y | Y position |
| velocityX | X velocity |
| velocityY | Y velocity |
Definition at line 20 of file projectileManager.cpp.
References utl::GameConfig::Projectile::Supercharged::ANIMATION_DURATION, utl::GameConfig::Projectile::Supercharged::ANIMATION_FRAMES, ecs::Projectile::BASIC, utl::calculateHitboxOffsets(), ecs::Registry::createEntity(), utl::GameConfig::Projectile::Basic::DAMAGE, utl::GameConfig::Projectile::Supercharged::DAMAGE, utl::GameConfig::Projectile::Basic::LIFETIME, utl::GameConfig::Projectile::Supercharged::LIFETIME, utl::GameConfig::Hitbox::PROJECTILE_BASIC_RADIUS, utl::GameConfig::Hitbox::PROJECTILE_SUPERCHARGED_RADIUS, utl::GameConfig::Projectile::Basic::SCALE, utl::GameConfig::Projectile::Supercharged::SCALE, utl::GameConfig::Projectile::Basic::SPRITE_HEIGHT, utl::GameConfig::Projectile::Supercharged::SPRITE_HEIGHT, utl::GameConfig::Projectile::Basic::SPRITE_WIDTH, utl::GameConfig::Projectile::Supercharged::SPRITE_WIDTH, utl::Path::Texture::TEXTURE_SHOOT, utl::Path::Texture::TEXTURE_SHOOT_CHARGED, and ecs::Registry::EntityBuilder::with().
Referenced by createBasicProjectile(), and createSuperchargedProjectile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Create a supercharged projectile.
| registry | The ECS registry |
| x | X position |
| y | Y position |
| velocityX | X velocity |
| velocityY | Y velocity |
Definition at line 14 of file projectileManager.cpp.
References createProjectile(), and ecs::Projectile::SUPERCHARGED.
Referenced by gme::WeaponSystem::tryFireSupercharged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
delete |
|
delete |
|
delete |
|
delete |