aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gameproc.h
blob: 8f7aea936af3b3bc0a72727ff9db47d8497e8406 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* gameproc.h
 *
 */

/*
    fics - An internet chess server.
    Copyright (C) 1993  Richard V. Nash

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
*/

/* Revision history:
   name		email		yy/mm/dd	Change
   Richard Nash			93/10/22	Created
   Markus Uhlin			24/03/30	Revised
*/

#ifndef _GAMEPROC_H
#define _GAMEPROC_H

#define MAX_SIMPASS	3
#define MAX_JOURNAL	10

#include "command.h" /* param_list */

extern int	com_abort(int, param_list);
extern int	com_adjourn(int, param_list);
extern int	com_boards(int, param_list);
extern int	com_courtesyabort(int, param_list);
extern int	com_courtesyadjourn(int, param_list);
extern int	com_draw(int, param_list);
extern int	com_flag(int, param_list);
extern int	com_goboard(int, param_list);
extern int	com_gonum(int, param_list);
extern int	com_moretime(int, param_list);
extern int	com_pause(int, param_list);
extern int	com_resign(int, param_list);
extern int	com_simabort(int, param_list);
extern int	com_simadjourn(int, param_list);
extern int	com_simallabort(int, param_list);
extern int	com_simalladjourn(int, param_list);
extern int	com_simgames(int, param_list);
extern int	com_simmatch(int, param_list);
extern int	com_simnext(int, param_list);
extern int	com_simpass(int, param_list);
extern int	com_simprev(int, param_list);
extern int	com_switch(int, param_list);
extern int	com_takeback(int, param_list);
extern int	com_time(int, param_list);
extern int	com_unpause(int, param_list);

extern int	pIsPlaying(int);
extern void	game_ended(int, int, int);
extern void	process_move(int, char *);

#endif /* _GAMEPROC_H */