/usr/include/osl/game_playing/cuiClient.h is in libosl-dev 0.6.0-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | /* cuiClient.h
*/
#ifndef GAME_PLAYING_CUICLIENT_H
#define GAME_PLAYING_CUICLIENT_H
#include "osl/game_playing/gameManager.h"
namespace osl
{
namespace game_playing
{
class CuiClient : public GameManager
{
protected:
std::istream& is;
std::ostream& os;
private:
/** non-zero value forces resign */
volatile int stop_by_outside;
public:
CuiClient(ComputerPlayer *black, ComputerPlayer *white,
CsaLogger *l, std::istream&, std::ostream&);
~CuiClient();
void run(const char *black, const char *white);
void run();
volatile int *stopFlag() { return &stop_by_outside; }
protected:
/** @return read next command immediately */
virtual bool readAndProcessCommand()=0;
virtual void processComputerMove(const search::MoveWithComment&, int seconds)=0;
};
} // namespace game_playing
} // namespace osl
#endif /* _CUICLIENT_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|