-rw-r--r-- | noncore/games/go/amigo.h | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/noncore/games/go/amigo.h b/noncore/games/go/amigo.h new file mode 100644 index 0000000..5150ac0 --- a/dev/null +++ b/noncore/games/go/amigo.h | |||
@@ -0,0 +1,146 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | /*========================================================================= | ||
21 | === === | ||
22 | === FILE amigo.h === | ||
23 | === === | ||
24 | === CONTENTS prototypes for the various AmiGo routines. === | ||
25 | === added by neilb === | ||
26 | === === | ||
27 | =========================================================================*/ | ||
28 | |||
29 | #ifndef __amigo_h | ||
30 | #define __amigo_h | ||
31 | |||
32 | #include "go.h" | ||
33 | #include "goplayutils.h" | ||
34 | |||
35 | #ifdef __STDC__ | ||
36 | #define PROTO(fp)fp | ||
37 | #else | ||
38 | #define PROTO(fp)() | ||
39 | #endif | ||
40 | |||
41 | |||
42 | #ifdef __cplusplus | ||
43 | extern "C" { | ||
44 | #endif | ||
45 | |||
46 | /* From goplayer.c */ | ||
47 | |||
48 | |||
49 | |||
50 | /* Procedures from amigo.c */ | ||
51 | |||
52 | shortConnect PROTO((enum bVal, short, short, short[4], short[4], short *, short * )); | ||
53 | shortMaxlibs PROTO((short, short)); | ||
54 | shortSuicide PROTO((enum bVal, short, short)); | ||
55 | shortStoneLibs PROTO((short, short)); | ||
56 | voidEraseMarks PROTO(()); | ||
57 | shortGoPlaceStone PROTO((enum bVal, short, short)); | ||
58 | voidGoRemoveStone PROTO((short, short)); | ||
59 | voidMergeGroups PROTO((short, short)); | ||
60 | voidDeleteGroup PROTO((short)); | ||
61 | voidReEvalGroups PROTO((enum bVal, short, short, short)); | ||
62 | voidGroupCapture PROTO((short)); | ||
63 | voidFixLibs PROTO((enum bVal, short, short, short)); | ||
64 | intCountUp PROTO((int*, int*)); | ||
65 | /*voidmain PROTO(());*/ | ||
66 | voidgoRestart PROTO((int)); | ||
67 | voidRelabelGroups PROTO(()); | ||
68 | shortCountAndMarkLibs PROTO((short, short)); | ||
69 | voidCountLiberties PROTO((short)); | ||
70 | voidCheckForEye PROTO((short, short, short[4], short, short *)); | ||
71 | voidCountEyes PROTO(()); | ||
72 | voidprintGroupReport PROTO((short, short)); | ||
73 | |||
74 | |||
75 | /* killable.c */ | ||
76 | |||
77 | inttryPlay PROTO(( short, short, short )); | ||
78 | intsSpanGroup PROTO(( short, short, sPointList * )); | ||
79 | intspanGroup PROTO(( short, short, pointList *)); | ||
80 | intpause PROTO(()); | ||
81 | |||
82 | intgenState PROTO(()); | ||
83 | intinitGPUtils PROTO(()); | ||
84 | intgenBord PROTO((enum bVal)); | ||
85 | |||
86 | shortgenMove PROTO(( enum bVal, short *, short * )); | ||
87 | shortcheckPos PROTO(( short, short, short )); | ||
88 | shorttakeCorner PROTO(( short *, short * )); | ||
89 | shortextend PROTO(( short *, short * )); | ||
90 | shortnoNbrs PROTO(( short, short )); | ||
91 | shortextend2 PROTO(( short *, short * )); | ||
92 | shortlookForSave PROTO(( short *, short * )); | ||
93 | shortlookForSaveN PROTO(( short *, short * )); | ||
94 | shortlookForKill PROTO(( short *, short * )); | ||
95 | shortdoubleAtari PROTO(( short *, short * )); | ||
96 | shortlookForAttack PROTO(( short *, short * )); | ||
97 | shortthreaten PROTO(( short *, short * )); | ||
98 | shortconnectCut PROTO(( short *, short * )); | ||
99 | shortheCanCut PROTO(( short, short )); | ||
100 | shortsafeMove PROTO(( short, short )); | ||
101 | shortextendWall PROTO(( short *, short * )); | ||
102 | shortfindAttack2 PROTO(( short *, short * )); | ||
103 | shortblockCut PROTO(( short *, short * )); | ||
104 | shortcutHim PROTO(( short *, short * )); | ||
105 | shortatariAnyway PROTO(( short *, short * )); | ||
106 | shortunderCut PROTO(( short *, short * )); | ||
107 | shortdropToEdge PROTO(( short *, short * )); | ||
108 | shortpushWall PROTO(( short *, short * )); | ||
109 | shortreduceHisLiberties PROTO(( short *, short * )); | ||
110 | shortdropToEdge2 PROTO(( short *, short * )); | ||
111 | |||
112 | |||
113 | /* goplayutils.c */ | ||
114 | |||
115 | shortsaveable PROTO((short, short, short *, short *)); | ||
116 | shortkillable PROTO((short, short, short *, short *)); | ||
117 | intinitBoolBoard PROTO((boolBoard)); | ||
118 | intintersectPlist PROTO((pointList *, pointList *, pointList *)); | ||
119 | intinitArray PROTO((intBoard)); | ||
120 | intinitState PROTO(()); | ||
121 | intcopyArray PROTO((intBoard, intBoard)); | ||
122 | intstake PROTO(()); | ||
123 | intspread PROTO(()); | ||
124 | intrespreicen PROTO(()); | ||
125 | inttryPlay PROTO((short, short, short)); | ||
126 | intsaveState PROTO(()); | ||
127 | intrestoreState PROTO(()); | ||
128 | shorttencen PROTO((short, short)); | ||
129 | intgenConnects PROTO(()); | ||
130 | intsortLibs PROTO(()); | ||
131 | |||
132 | |||
133 | /*-- from xinterface.c --*/ | ||
134 | voidremovestone PROTO((short, short)); | ||
135 | voidplacestone PROTO((enum bVal, short, short)); | ||
136 | |||
137 | voidintrMoveReport PROTO((enum bVal,char *,char *)); | ||
138 | voidintrPrisonerReport PROTO(( short, short )); | ||
139 | |||
140 | |||
141 | #ifdef __cplusplus | ||
142 | } | ||
143 | #endif | ||
144 | |||
145 | |||
146 | #endif | ||