R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
GameStartedEvent.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Created by hugo on 12/12/2025
4** File description:
5** GameStartedEvent.hpp
6*/
7
8#pragma once
9
10#include <string>
12
13namespace server {
14
19 class GameStartedEvent : public GameEvent {
20 public:
21 explicit GameStartedEvent(const std::string &roomId = "")
22 : GameEvent(Type::GAME_STARTED), _roomId(roomId) {}
23 ~GameStartedEvent() override = default;
24
29 const std::string &getRoomId() const { return _roomId; }
30
31 private:
32 std::string _roomId;
33 };
34
35} // namespace server
Base class for all game-related events.
Definition GameEvent.hpp:19
Event triggered when the game starts in a specific room.
~GameStartedEvent() override=default
const std::string & getRoomId() const
Get the room ID where the game started.
GameStartedEvent(const std::string &roomId="")