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

0001 /*
0002     SPDX-FileCopyrightText: 2003 Russell Steffen <rsteffen@bayarea.net>
0003     SPDX-FileCopyrightText: 2003 Stephan Zehetner <s.zehetner@nevox.org>
0004     SPDX-FileCopyrightText: 2006 Dmitry Suzdalev <dimsuz@gmail.com>
0005     SPDX-FileCopyrightText: 2006 Inge Wallin <inge@lysator.liu.se>
0006     SPDX-FileCopyrightText: 2006 Pierre Ducroquet <pinaraf@gmail.com>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #ifndef NEUTRALPLAYER_H
0012 #define NEUTRALPLAYER_H
0013 
0014 #include "player.h"
0015 
0016 
0017 /**
0018  * The neutral player is the owner of neutral planets. From a game mechanics
0019  * point of view, a neutral player's turn starts a new game turn. Attacks and
0020  * production are handled here.
0021  */
0022 
0023 class NeutralPlayer : public Player
0024 {
0025 public:
0026     explicit NeutralPlayer(Game *game);
0027 
0028     bool isDead() override;
0029 
0030     bool isNeutral() override;
0031 
0032 protected:
0033     void play() override;
0034 };
0035 
0036 #endif // NEUTRALPLAYER_H