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

stupid.h

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

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