File indexing completed on 2022-11-29 18:40:53

0001 /*
0002     SPDX-FileCopyrightText: 2013 Denis Kuplyakov <dener.kup@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef GAMESTARTINFORMATION_H
0008 #define GAMESTARTINFORMATION_H
0009 
0010 #include <QString>
0011 
0012 /**
0013  * Represents information gathered from user by StartGameDialog.
0014  */
0015 class GameStartInformation
0016 {
0017 
0018 public:
0019     /**
0020      * Indicates player type
0021      */
0022     enum PlayerType {
0023         /** Human player */
0024         Human,
0025         /** AI (or Computer) player */
0026         AI
0027     };
0028 
0029     /**
0030      * PlayerType for each player.
0031      * Use it like: type[Black]
0032      */
0033     PlayerType type[2];
0034     /**
0035      * Name for each player.
0036      * Use it like: name[Black]
0037      */
0038     QString name[2];
0039     /**
0040      * Skill for each player.
0041      * Has no sense for Human player
0042      * Use it like: skill[Black]
0043      */
0044     int skill[2];
0045 };
0046 
0047 #endif // GAMESTARTINFORMATION_H