1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ 2 * This is GNU Go, a Go program. Contact gnugo@gnu.org, or see * 3 * http://www.gnu.org/software/gnugo/ for more information. * 4 * * 5 * Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, * 6 * 2008 and 2009 by the Free Software Foundation. * 7 * * 8 * This program is free software; you can redistribute it and/or * 9 * modify it under the terms of the GNU General Public License as * 10 * published by the Free Software Foundation - version 3 or * 11 * (at your option) any later version. * 12 * * 13 * This program is distributed in the hope that it will be useful, * 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 16 * GNU General Public License in file COPYING for more details. * 17 * * 18 * You should have received a copy of the GNU General Public * 19 * License along with this program; if not, write to the Free * 20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * 21 * Boston, MA 02111, USA. * 22 \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 23 24 #ifndef _CLOCK_H_ 25 #define _CLOCK_H_ 26 27 #include "gnugo.h" 28 29 /* initialization and activation */ 30 void clock_settings(int maintime, int byotime, int byostones); 31 void init_timers(void); 32 33 /* main access */ 34 void clock_push_button(int color); 35 void update_time_left(int color, int time_left, int stones); 36 void clock_print(int color); 37 int have_time_settings(void); 38 39 void adjust_level_offset(int color); 40 41 /* Access to level settings. */ 42 int get_level(void); 43 void set_level(int new_level); 44 void set_max_level(int new_max); 45 void set_min_level(int new_min); 46 47 48 #endif /* _CLOCK_H_ */ 49 50 51