Commit d1d07bb0 authored by Denis Kuplyakov's avatar Denis Kuplyakov
Browse files

Documented GameStartInformation class.

parent e9b1fe2a
......@@ -26,17 +26,38 @@
#include <QString>
/**
* Represents information gathered from user by StartGameDialog.
*/
class GameStartInformation
{
public:
/**
* Indicates player type
*/
enum PlayerType {
/** Human player */
Human,
/** AI (or Computer) player */
AI
};
/**
* PlayerType for each player.
* Use it like: type[Black]
*/
PlayerType type[2];
/**
* Name for each player.
* Use it like: name[Black]
*/
QString name[2];
/**
* Skill for each player.
* Has no sense for Human player
* Use it like: skill[Black]
*/
int skill[2];
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment