r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
AGameServer.hpp
Go to the documentation of this file.
1///
2/// @file AGameServer.hpp
3/// @brief This file contains the game abstract class
4/// @namespace gme
5///
6
7#pragma once
8
10
11namespace gme
12{
13
14 ///
15 /// @class AGameServer
16 /// @brief Abstraction for the games
17 /// @namespace gme
18 ///
19 class AGameServer : public IGameServer
20 {
21 public:
22 ~AGameServer() override = default;
23
24 [[nodiscard]] std::string &getName() override { return m_name; }
25 void setName(const std::string &newName) override { m_name = newName; }
26
27 private:
28 std::string m_name = "default_name";
29 }; // class AGameServer
30
31} // namespace gme
This file contains the Game interface.
Abstraction for the games.
void setName(const std::string &newName) override
~AGameServer() override=default
std::string & getName() override
std::string m_name
Interface for the games.