File indexing completed on 2024-12-08 06:47:08
0001 /* 0002 SPDX-FileCopyrightText: 2006 Pierre Ducroquet <pinaraf@pinaraf.info> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef COMPUTERPLAYER_H 0008 #define COMPUTERPLAYER_H 0009 0010 #include "player.h" 0011 0012 0013 /** 0014 * This is the base class of all AI players. 0015 */ 0016 0017 class ComputerPlayer : public Player 0018 { 0019 protected: 0020 explicit ComputerPlayer(Game *game, const QString &newName, const QColor &color); 0021 0022 bool isAiPlayer() override; 0023 void play() override = 0; 0024 }; 0025 0026 #endif // COMPUTERPLAYER_H