libkdegames/kggzmod
player.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KGGZMOD_PLAYER_H
00022 #define KGGZMOD_PLAYER_H
00023
00024 #include <QtCore/QString>
00025
00026 #include "kggzmod_export.h"
00027
00028 namespace KGGZMod
00029 {
00030
00031 class PlayerPrivate;
00032 class Statistics;
00033
00054 class KGGZMOD_EXPORT Player
00055 {
00056 friend class ModulePrivate;
00057
00058 public:
00065 enum Type
00066 {
00067 unknown,
00068 open,
00069 bot,
00070 player,
00071 reserved,
00072 abandoned,
00073 spectator
00074 };
00075
00081 Type type() const;
00082
00092 QString name() const;
00093
00102 int seat() const;
00103
00113 Statistics *stats() const;
00114
00125 QString hostname() const;
00126
00137 QString photo() const;
00138
00148 QString realname() const;
00149
00150 private:
00151 Player();
00152 ~Player();
00153 PlayerPrivate *d;
00154 void init(PlayerPrivate *x);
00155 };
00156
00157 }
00158
00159 #endif
00160