group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
FireSystem.hpp File Reference

Tick all active FireField entities: apply DoT damage and expire. More...

#include "ecs/registry/Registry.hpp"
#include "network/NetKillEvent.hpp"
#include <glm/vec3.hpp>
#include <vector>
Include dependency graph for FireSystem.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  systems
 Client-only input sampling system — split into two halves so mouse look can run every iterate() (smooth camera at any FPS) while movement keys run once per physics tick group (server-consistent).

Functions

void systems::spawnFireField (Registry &registry, glm::vec3 position, float radius, float duration, float dps, entt::entity owner)
 Spawn a FireField at position that lasts duration seconds and deals dps damage to players inside radius.
void systems::runFireField (Registry &registry, float dt, std::vector< NetKillEvent > &killEvents)
 Tick all FireField entities: decrement remaining, apply DoT damage at fixed sub-intervals (4 Hz), and destroy expired fields.

Detailed Description

Tick all active FireField entities: apply DoT damage and expire.