File indexing completed on 2024-12-01 06:52:13
0001 /* 0002 SPDX-FileCopyrightText: 2013 Alexander Schuch <aschuch247@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SPECTATORPLAYER_H 0008 #define SPECTATORPLAYER_H 0009 0010 #include "localplayer.h" 0011 0012 0013 /** 0014 * a spectator player controller 0015 * 0016 * A spectator is very much like a local human player, except that it has no 0017 * planets. It cannot die and it does not count as active player. Its main 0018 * purpose is to watch the game, for example watch AIs play against each other. 0019 */ 0020 0021 class SpectatorPlayer : public LocalPlayer 0022 { 0023 public: 0024 explicit SpectatorPlayer(Game *game, const QString &newName, const QColor &color); 0025 0026 bool isDead() override; 0027 bool isSpectator() override; 0028 }; 0029 0030 #endif // SPECTATORPLAYER_H