File indexing completed on 2024-12-15 03:49:09

0001 /*
0002     SPDX-FileCopyrightText: 2013 Alexander Schuch <aschuch247@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef AI_EXAMPLE_H
0008 #define AI_EXAMPLE_H
0009 
0010 #include "../../computerplayer.h"
0011 
0012 
0013 /**
0014  * This is a passive example AI player.
0015  *
0016  * The classes can be used as base for own AI implementations. This
0017  * implementation does nothing. In other words, this AI player does not expand
0018  * its empire and just stacks its production for a massive defence of its
0019  * home world.
0020  */
0021 
0022 class AiExample : public ComputerPlayer
0023 {
0024 public:
0025     explicit AiExample(Game *game, const QString &newName, const QColor &color);
0026 
0027     void play() override;
0028 
0029 };
0030 
0031 #endif // AI_EXAMPLE_H