File: local.h

package info (click to toggle)
cgoban 1.9.14-18
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,448 kB
  • sloc: ansic: 36,037; sh: 707; makefile: 259
file content (73 lines) | stat: -rw-r--r-- 1,691 bytes parent folder | download | duplicates (12)
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
65
66
67
68
69
70
71
72
73
/*
 * src/local.h, part of Complete Goban (game program)
 * Copyright (C) 1995 William Shubert.
 * See "configure.h.in" for more copyright information.
 */


#ifndef  _LOCAL_H_
#define  _LOCAL_H_  1

#ifndef  _SGF_H_
#include "sgf.h"
#endif
#ifndef  _GOGAME_H_
#include "goGame.h"
#endif
#ifndef  _GOPIC_H_
#include "goPic.h"
#endif
#ifndef  _GOBAN_H_
#include "goban.h"
#endif


/**********************************************************************
 * Forward declarations
 **********************************************************************/
#ifndef  _ABUT_FSEL_H_
#ifndef  AbutFsel
#define  AbutFsel  void
#endif
#endif
#ifndef  _ABUT_MSG_H_
#ifndef  AbutMsg
#define  AbutMsg  void
#endif
#endif


/**********************************************************************
 * Data types
 **********************************************************************/

typedef struct Local_struct  {
  Cgoban  *cg;

  GoGame  *game;
  bool  modified;
  Goban  *goban;
  Sgf  *moves;
  SgfElem  *endGame;  /* Used to backtrack after a dispute. */
  SgfElem  *lastComment;
  AbutFsel  *fsel;
  AbutMsg  *reallyQuit;

  MAGIC_STRUCT
} Local;


/**********************************************************************
 * Functions
 **********************************************************************/
extern Local  *local_create(Cgoban *cg, GoRules rules,
			    int size, int hcap, float komi,
			    const char *white, const char *black,
			    GoTimeType timeType, int mainTime,
			    int byTime, int auxTime);
extern Local  *local_createFile(Cgoban *cg, const char *fname);
extern Local  *local_createSgf(Cgoban *cg, Sgf *mc);
extern void  local_destroy(Local *l);


#endif  /* _LOCAL_H_ */