Handles projectile creation and management. More...
#include <ProjectileManager.hpp>
Public Member Functions | |
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 20 of file ProjectileManager.hpp.
|
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 13 of file ProjectileManager.cpp.
References ecs::Projectile::BASIC, and createProjectile().
Referenced by cli::WeaponSystem::tryFireBasic().
|
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 25 of file ProjectileManager.cpp.
References ecs::Projectile::BASIC, ecs::Registry::createEntity(), cli::GameConfig::Hitbox::PROJECTILE_BASIC_RADIUS, cli::GameConfig::Hitbox::PROJECTILE_SUPERCHARGED_RADIUS, cli::Path::Texture::TEXTURE_SHOOT, cli::Path::Texture::TEXTURE_SHOOT_CHARGED, and ecs::Registry::EntityBuilder::with().
Referenced by createBasicProjectile(), and createSuperchargedProjectile().
|
static |
Create a supercharged projectile.
registry | The ECS registry |
x | X position |
y | Y position |
velocityX | X velocity |
velocityY | Y velocity |
Definition at line 19 of file ProjectileManager.cpp.
References createProjectile(), and ecs::Projectile::SUPERCHARGED.
Referenced by cli::WeaponSystem::tryFireSupercharged().
|
delete |
|
delete |