ShootCommand.ixx File
Command for triggering shooting actions on GameObjects. More...
Included Headers
#include <helios.engine.runtime.world.GameWorld>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.engine.mechanics.combat.components.ShootComponent>
#include <helios.math.types>
#include <helios.engine.modules.physics.motion.components.Move2DComponent>
#include <helios.engine.ecs>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | mechanics |
|
High-level gameplay systems and components for game logic. More... | |
| namespace | combat |
|
Combat-related gameplay systems, components, and commands. More... | |
| namespace | commands |
|
Combat-related commands for translating input into combat actions. More... | |
Classes Index
| class | ShootCommand |
|
Command that triggers a shooting action on a GameObject. More... | |
Description
Command for triggering shooting actions on GameObjects.
File Listing
The file content with the documentation metadata removed is:
19export namespace helios::engine::mechanics::combat::commands {
52 class ShootCommand {
63 const helios::engine::ecs::EntityHandle entityHandle_;
73 explicit ShootCommand(
74 const helios::engine::ecs::EntityHandle entityHandle,
75 float intensity
78 intensity_(intensity)
99 void execute(helios::engine::runtime::world::UpdateContext& updateContext) const noexcept {
107 auto* shootComponent = gameObject->get<helios::engine::mechanics::combat::components::ShootComponent>();
110 auto* m2d = gameObject->get<helios::engine::modules::physics::motion::components::Move2DComponent>();
114 m2d != nullptr ? m2d->velocity() : helios::math::vec3f{0.0f, 0.0f, 0.0f}
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.