• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames/kggzmod

player.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the kggzmod library.
00003     Copyright (c) 2005 - 2007 Josef Spillner <josef@ggzgamingzone.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
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 

libkdegames/kggzmod

Skip menu "libkdegames/kggzmod"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal