R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
CollisionEvent.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Created by hugo on 06/12/2025
4** File description:
5** CollisionEvent.hpp
6*/
7
8#pragma once
9
11
12namespace server {
13
18 class CollisionEvent : public IEvent {
19 public:
25 CollisionEvent(int entityA, int entityB) : _entityA(entityA), _entityB(entityB) {}
26 ~CollisionEvent() override = default;
27
31 int getEntityA() const { return _entityA; }
32
36 int getEntityB() const { return _entityB; }
37
38 private:
41 };
42
43} // namespace server
Represents a collision between two entities.
CollisionEvent(int entityA, int entityB)
Construct a collision event.
int getEntityB() const
Get the second entity ID involved in the collision.
int getEntityA() const
Get the first entity ID involved in the collision.
~CollisionEvent() override=default
Base interface for all events.
Definition IEvent.hpp:18