CheeseEngine
A 2D Game Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
InterceptionEvent Struct Reference

Fired when an entity overlaps with a non-solid trigger zone. More...

#include <Events.hpp>

Inheritance diagram for InterceptionEvent:
[legend]
Collaboration diagram for InterceptionEvent:
[legend]

Public Member Functions

 InterceptionEvent ()=default
 Default constructor for delayed initialization.
 
 InterceptionEvent (entt::entity a, entt::entity b, TriggerAction act)
 Initializes an interception event.
 
- Public Member Functions inherited from Event
virtual ~Event ()=default
 Virtual destructor to ensure proper polymorphic cleanup.
 

Public Attributes

entt::entity entityA
 ID of the physical entity (e.g., Player)
 
entt::entity entityB
 ID of the non-solid trigger zone.
 
TriggerAction action
 State of the intersection.
 

Detailed Description

Fired when an entity overlaps with a non-solid trigger zone.

Constructor & Destructor Documentation

◆ InterceptionEvent() [1/2]

InterceptionEvent::InterceptionEvent ( )
default

Default constructor for delayed initialization.

Parameters
None
Return values
None

◆ InterceptionEvent() [2/2]

InterceptionEvent::InterceptionEvent ( entt::entity  a,
entt::entity  b,
TriggerAction  act 
)
inline

Initializes an interception event.

Parameters
a: ID of the physical entity
b: ID of the trigger zone entity
act: Current state of the intersection
Return values
None

Member Data Documentation

◆ action

TriggerAction InterceptionEvent::action

State of the intersection.

◆ entityA

entt::entity InterceptionEvent::entityA

ID of the physical entity (e.g., Player)

◆ entityB

entt::entity InterceptionEvent::entityB

ID of the non-solid trigger zone.


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