mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-24 15:43:54 -07:00
initial commit
This commit is contained in:
commit
a11f93df4d
99 changed files with 7493 additions and 0 deletions
21
cockatrice/src/servergame.h
Normal file
21
cockatrice/src/servergame.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef SERVERGAME_H
|
||||
#define SERVERGAME_H
|
||||
|
||||
class ServerGame {
|
||||
private:
|
||||
QString name;
|
||||
QString description;
|
||||
bool hasPassword;
|
||||
unsigned char playerCount;
|
||||
unsigned char maxPlayers;
|
||||
public:
|
||||
ServerGame(const QString &_name, const QString &_description, bool _hasPassword, unsigned char _playerCount, unsigned char _maxPlayers)
|
||||
: name(_name), description(_description), hasPassword(_hasPassword), playerCount(_playerCount), maxPlayers(_maxPlayers) { }
|
||||
QString getName() { return name; }
|
||||
QString getDescription() { return description; }
|
||||
bool getHasPassword() { return hasPassword; }
|
||||
unsigned char getPlayerCount() { return playerCount; }
|
||||
unsigned char getMaxPlayers() { return maxPlayers; }
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue