R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
server::EntityDestroyedEvent Class Reference

Triggered when an entity is destroyed. More...

#include <EntityDestroyedEvent.hpp>

Inheritance diagram for server::EntityDestroyedEvent:
Inheritance graph
Collaboration diagram for server::EntityDestroyedEvent:
Collaboration graph

Public Member Functions

 EntityDestroyedEvent (int entityId)
 Construct a new EntityDestroyedEvent.
 
 ~EntityDestroyedEvent () override=default
 
int getEntityId () const
 Get the ID of the destroyed entity.
 
- Public Member Functions inherited from server::IEvent
 IEvent ()=default
 
virtual ~IEvent ()=default
 

Private Attributes

int _entityId
 

Detailed Description

Triggered when an entity is destroyed.

Definition at line 18 of file EntityDestroyedEvent.hpp.

Constructor & Destructor Documentation

◆ EntityDestroyedEvent()

server::EntityDestroyedEvent::EntityDestroyedEvent ( int  entityId)
inlineexplicit

Construct a new EntityDestroyedEvent.

Parameters
entityIdThe ID of the destroyed entity

Definition at line 24 of file EntityDestroyedEvent.hpp.

◆ ~EntityDestroyedEvent()

server::EntityDestroyedEvent::~EntityDestroyedEvent ( )
overridedefault

Member Function Documentation

◆ getEntityId()

int server::EntityDestroyedEvent::getEntityId ( ) const
inline

Get the ID of the destroyed entity.

Definition at line 30 of file EntityDestroyedEvent.hpp.

References _entityId.

Member Data Documentation

◆ _entityId

int server::EntityDestroyedEvent::_entityId
private

Definition at line 33 of file EntityDestroyedEvent.hpp.

Referenced by getEntityId().


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