/usr/include/osl/game_playing/timeKeeper.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 | /* timeKeeper.h
*/
#ifndef GAME_PLAYING_TIMEKEEPER_H
#define GAME_PLAYING_TIMEKEEPER_H
#include "osl/player.h"
#include <boost/scoped_ptr.hpp>
namespace osl
{
namespace game_playing
{
class TimeKeeper
{
struct Stack;
boost::scoped_ptr<Stack> seconds;
public:
TimeKeeper();
TimeKeeper(int black_time, int white_time);
~TimeKeeper();
void reset(int black_time, int white_time);
void pushMove(Player, int seconds);
void popMove();
int timeLeft(Player) const;
int timeElapsed(Player) const;
int timeLimit(Player) const;
};
} // namespace game_playing
} // namespace osl
#endif /* GAME_PLAYING_TIMEKEEPER_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|