File indexing completed on 2024-10-13 03:44:43

0001 /*
0002     SPDX-FileCopyrightText: 2013 Alexander Schuch <aschuch247@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "spectatorplayer_gui.h"
0008 #include "spectatorplayer.h"
0009 
0010 #include <KLocalizedString>
0011 
0012 SpectatorPlayerGui::SpectatorPlayerGui() :
0013     PlayerGui(i18nc("A human spectator", "Human (Spectator)"))
0014 {
0015 }
0016 
0017 
0018 Player*
0019 SpectatorPlayerGui::createInstance(Game *game, const QString &newName, const QColor &color) const
0020 {
0021     return new SpectatorPlayer(game, newName, color);
0022 }