diff --git a/common/server/game/server_abstract_participant.cpp b/common/server/game/server_abstract_participant.cpp index 9583dcc78..950452323 100644 --- a/common/server/game/server_abstract_participant.cpp +++ b/common/server/game/server_abstract_participant.cpp @@ -97,16 +97,6 @@ Server_AbstractParticipant::Server_AbstractParticipant(Server_Game *_game, { } -Server_Spectator::Server_Spectator(Server_Game *_game, - int _playerId, - const ServerInfo_User &_userInfo, - bool _judge, - Server_AbstractUserInterface *_userInterface) - : Server_AbstractParticipant(_game, _playerId, _userInfo, _judge, _userInterface) -{ - spectator = true; -} - Server_AbstractParticipant::~Server_AbstractParticipant() = default; void Server_AbstractParticipant::removeFromGame() diff --git a/common/server/game/server_abstract_participant.h b/common/server/game/server_abstract_participant.h index 41017003c..dcae09741 100644 --- a/common/server/game/server_abstract_participant.h +++ b/common/server/game/server_abstract_participant.h @@ -180,15 +180,4 @@ public: getInfo(ServerInfo_Player *info, Server_AbstractParticipant *recipient, bool omniscient, bool withUserInfo); }; -class Server_Spectator : public Server_AbstractParticipant -{ - Q_OBJECT -public: - Server_Spectator(Server_Game *_game, - int _playerId, - const ServerInfo_User &_userInfo, - bool _judge, - Server_AbstractUserInterface *_handler); -}; - #endif diff --git a/common/server/game/server_spectator.cpp b/common/server/game/server_spectator.cpp new file mode 100644 index 000000000..bc873e386 --- /dev/null +++ b/common/server/game/server_spectator.cpp @@ -0,0 +1,11 @@ +#include "server_spectator.h" + +Server_Spectator::Server_Spectator(Server_Game *_game, + int _playerId, + const ServerInfo_User &_userInfo, + bool _judge, + Server_AbstractUserInterface *_userInterface) + : Server_AbstractParticipant(_game, _playerId, _userInfo, _judge, _userInterface) +{ + spectator = true; +} diff --git a/common/server/game/server_spectator.h b/common/server/game/server_spectator.h new file mode 100644 index 000000000..4d3928a63 --- /dev/null +++ b/common/server/game/server_spectator.h @@ -0,0 +1,17 @@ +#ifndef SPECTATOR_H +#define SPECTATOR_H + +#include "server_abstract_participant.h" + +class Server_Spectator : public Server_AbstractParticipant +{ + Q_OBJECT +public: + Server_Spectator(Server_Game *_game, + int _playerId, + const ServerInfo_User &_userInfo, + bool _judge, + Server_AbstractUserInterface *_handler); +}; + +#endif