File indexing completed on 2024-05-12 04:04:38

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_BECAI_H
0008 #define AI_BECAI_H
0009 
0010 #include "../../computerplayer.h"
0011 
0012 
0013 /**
0014  * This is quite a challenging AI.
0015  */
0016 
0017 class AiBecai : public ComputerPlayer
0018 {
0019 public:
0020     explicit AiBecai(Game *game, const QString &newName, const QColor &color);
0021 
0022     void play() override;
0023 
0024 private:
0025     int getMinimumDefenceFleetSize(Planet *planet, int minimumBaseDefenceFleetSize, double averageOwnKillPercentage, double averageOwnProduction);
0026 };
0027 
0028 #endif // AI_BECAI_H