All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cuiClient.h
Go to the documentation of this file.
1 /* cuiClient.h
2  */
3 #ifndef GAME_PLAYING_CUICLIENT_H
4 #define GAME_PLAYING_CUICLIENT_H
5 
7 namespace osl
8 {
9  namespace game_playing
10  {
11  class CuiClient : public GameManager
12  {
13  protected:
14  std::istream& is;
15  std::ostream& os;
16  private:
18  volatile int stop_by_outside;
19  public:
21  CsaLogger *l, std::istream&, std::ostream&);
22  ~CuiClient();
23  void run(const char *black, const char *white);
24  void run();
25  volatile int *stopFlag() { return &stop_by_outside; }
26  protected:
28  virtual bool readAndProcessCommand()=0;
29  virtual void processComputerMove(const search::MoveWithComment&, int seconds)=0;
30  };
31  } // namespace game_playing
32 } // namespace osl
33 
34 #endif /* _CUICLIENT_H */
35 // ;;; Local Variables:
36 // ;;; mode:c++
37 // ;;; c-basic-offset:2
38 // ;;; End: