Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

qt.h

Go to the documentation of this file.
00001 
00025 #ifndef PLAYER_QT_H
00026 #define PLAYER_QT_H 1
00027 
00028 #include <dmn/player.h>
00029 #include <dmn/dominoes.h>
00030 
00031 #include <string>
00032 
00033 #include <qwidget.h>
00034 
00035 namespace dmn
00036 {
00040   class PlayerQt: public Player
00041   {
00042   private:
00043     Core* core_;    // Core
00044     ID hand_id_;    // Identificator of the hand where the players
00045         // plays
00046     std::string name_;    // Player's name
00047     dmn::Dominoes dominoes_;  // Player's dominoes
00048     bool is_configured_;  // true -> Module configured,
00049         // false -> Module not configured
00050     QPoint position_;   // Window position
00051 
00052   public:
00056     PlayerQt();
00057 
00058     bool configure(Core* core);
00059     void set_name(std::string name);
00060     std::string name();
00061     bool is_interactive();
00062     void set_shuffled_tile(Domino domino);
00063     bool domino_to_play(Domino* domino, HalfDomino* half);
00064     void set_domino_played(ID id, Domino domino, HalfDomino half);
00065     void set_player_pass(ID id, bool domino_shuffled);
00066   };
00067 };
00068 
00069 #endif // PLAYER_QT_H

Generated on Fri Dec 26 22:52:55 2003 for dmn by doxygen 1.3.4