group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
FireField Struct Reference

A burning area on the ground that damages players standing in it. More...

#include <FireField.hpp>

Public Attributes

glm::vec3 position {0.0f}
 World-space center.
float radius = 0.0f
 AoE radius (u).
float remaining = 0.0f
 Seconds left until field is destroyed.
float dps = 0.0f
 Damage per second to players inside.
float tickAccumulator = 0.0f
 Sub-tick accumulator for fixed-rate damage application.
entt::entity owner = entt::null
 Caused-by entity (for kill credit + self-damage scaling).

Detailed Description

A burning area on the ground that damages players standing in it.

Server-side authority: damage applied by FireSystem each tick. Replicated to clients so they can render fire VFX (Task 12).

Member Data Documentation

◆ dps

float FireField::dps = 0.0f

Damage per second to players inside.

◆ owner

entt::entity FireField::owner = entt::null

Caused-by entity (for kill credit + self-damage scaling).

◆ position

glm::vec3 FireField::position {0.0f}

World-space center.

◆ radius

float FireField::radius = 0.0f

AoE radius (u).

◆ remaining

float FireField::remaining = 0.0f

Seconds left until field is destroyed.

◆ tickAccumulator

float FireField::tickAccumulator = 0.0f

Sub-tick accumulator for fixed-rate damage application.


The documentation for this struct was generated from the following file: