csaClient.h
Go to the documentation of this file.
00001 /* csaClient.h
00002  */
00003 #ifndef GAME_PLAYING_CSACLIENT_H
00004 #define GAME_PLAYING_CSACLIENT_H
00005 #include "osl/game_playing/cuiClient.h"
00006 
00007 namespace osl
00008 {
00009   namespace game_playing
00010   {
00011     class CsaClient : public CuiClient
00012     {
00013       bool show_move_with_comment;
00014       bool silent;
00015       std::string line;
00016     public:
00017       CsaClient(ComputerPlayer *black, ComputerPlayer *white,
00018                 CsaLogger *l,
00019                 std::istream&, std::ostream&);
00020       ~CsaClient();
00021       void setShowMoveWithComment(bool value=true);
00022       void setSilent(bool new_value=true) {
00023         silent = new_value;
00024       }
00025     private:
00026       bool readAndProcessCommand();
00027       void processComputerMove(const search::MoveWithComment&, int seconds);
00028     };
00029   } // namespace game_playing
00030 } // namespace osl
00031 
00032 
00033 #endif /* _CSACLIENT_H */
00034 // ;;; Local Variables:
00035 // ;;; mode:c++
00036 // ;;; c-basic-offset:2
00037 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines