File indexing completed on 2024-04-28 04:03:31

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.h"
0008 
0009 SpectatorPlayer::SpectatorPlayer(
0010         Game *game,
0011         const QString &newName,
0012         const QColor &color)
0013     : LocalPlayer(
0014         game,
0015         newName,
0016         color)
0017 {
0018 }
0019 
0020 
0021 bool SpectatorPlayer::isDead()
0022 {
0023     return false;
0024 }
0025 
0026 
0027 bool SpectatorPlayer::isSpectator()
0028 {
0029     return true;
0030 }