Prepare 1.0 alpha3 release.
[tagua/yd.git] / src / player.h
blobf5ccb19b7e2eaa28e02679e263ebb6a988b0a0ae
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef PLAYER_H
12 #define PLAYER_H
14 #include <qstring.h>
16 class Player {
17 public:
18 QString name;
19 int rating;
21 Player(const QString& name, int rating)
22 : name(name)
23 , rating(rating) { }
25 Player()
26 : name("unknown")
27 , rating(-1) { }
29 bool operator==(const QString& otherName) const {
30 return name == otherName;
34 #endif // PLAYER_H