home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / games / gemamigo / src / amigo.h < prev    next >
C/C++ Source or Header  |  1994-04-16  |  4KB  |  127 lines

  1. /*=========================================================================
  2. ===                                    ===
  3. === FILE    amigo.h                            ===
  4. ===                                    ===
  5. === CONTENTS    prototypes for the various AmiGo routines.        ===
  6. ===        added by neilb                        ===
  7. ===                                    ===
  8. =========================================================================*/
  9.  
  10. #ifndef __amigo_h
  11. #define __amigo_h
  12.  
  13. #include "go.h"
  14.  
  15. #ifdef __STDC__
  16. #define PROTO(fp)    fp
  17. #else
  18. #define PROTO(fp)    ()
  19. #endif
  20.  
  21.  
  22. /* From goplayer.c */
  23.  
  24.  
  25. /* Procedures from amigo.c */
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. short    Connect PROTO((enum bVal, short, short, short[4], short[4], short *, short * ));
  32. short    Maxlibs PROTO((short, short));
  33. void    FillPoints PROTO((short, short, short));
  34. short    Suicide PROTO((enum bVal, short, short));
  35. short    StoneLibs PROTO((short, short));
  36. int    undoTo PROTO((short));
  37. void    EraseMarks PROTO(());
  38. short    GoPlaceStone PROTO((enum bVal, short, short));
  39. void    GoRemoveStone PROTO((short, short));
  40. void    MergeGroups PROTO((short, short));
  41. void    DeleteGroup PROTO((short));
  42. void    ReEvalGroups PROTO((enum bVal, short, short, short));
  43. void    GroupCapture PROTO((short));
  44. int    DeleteGroupFromStone PROTO((short, short));
  45. void    FixLibs PROTO((enum bVal, short, short, short));
  46. void    goRestart PROTO((int));
  47. void    RelabelGroups PROTO(());
  48. short    CountAndMarkLibs PROTO((short, short));
  49. void    CountLiberties PROTO((short));
  50. void    CheckForEye PROTO((short, short, short[4], short, short *));
  51. void    CountEyes PROTO(());
  52. void    printGroupReport PROTO((short, short));
  53.  
  54.  
  55. /* killable.c */
  56.  
  57. int    tryPlay PROTO(( short, short, short ));
  58. int    sSpanGroup PROTO(( short, short, sPointList * ));
  59. int    listDiags PROTO(( short, short, sPointList * ));
  60. int    spanGroup PROTO(( short, short, pointList *));
  61. int    pause PROTO(());
  62.  
  63. int    genState PROTO(());
  64. int    initGPUtils PROTO(());
  65. int    genBord PROTO((enum bVal));
  66.  
  67. short    genMove PROTO(( enum bVal, short *, short * ));
  68. short    checkPos PROTO(( short, short, short ));
  69. short    takeCorner PROTO(( short *, short * ));
  70. short    extend PROTO(( short *, short * ));
  71. short    noNbrs PROTO(( short, short ));
  72. short    extend2 PROTO(( short *, short * ));
  73. short    lookForSave PROTO(( short *, short * ));
  74. short    lookForSaveN PROTO(( short *, short * ));
  75. short    lookForKill PROTO(( short *, short * ));
  76. short    doubleAtari PROTO(( short *, short * ));
  77. short    lookForAttack PROTO(( short *, short * ));
  78. short    threaten PROTO(( short *, short * ));
  79. short    connectCut PROTO(( short *, short * ));
  80. short    heCanCut PROTO(( short, short ));
  81. short    safeMove PROTO(( short, short ));
  82. short    extendWall PROTO(( short *, short * ));
  83. short    findAttack2 PROTO(( short *, short * ));
  84. short    blockCut PROTO(( short *, short * ));
  85. short    cutHim PROTO(( short *, short * ));
  86. short    atariAnyway PROTO(( short *, short * ));
  87. short    underCut PROTO(( short *, short * ));
  88. short    dropToEdge PROTO(( short *, short * ));
  89. short    pushWall PROTO(( short *, short * ));
  90. short    reduceHisLiberties PROTO(( short *, short * ));
  91. short    dropToEdge2 PROTO(( short *, short * ));
  92.  
  93. void    removestone PROTO((short, short));
  94. void    placestone PROTO((enum bVal, short, short));
  95. void    showresult PROTO((short,short,short,short));
  96.  
  97. /* goplayutils.c */
  98.  
  99. short    saveable PROTO((short, short, short *, short *));
  100. short    killable PROTO((short, short, short *, short *));
  101. int    initBoolBoard PROTO((boolBoard));
  102. int    intersectPlist PROTO((pointList *, pointList *, pointList *));
  103. int    initArray PROTO((intBoard));
  104. int    initState PROTO(());
  105. int    copyArray PROTO((intBoard, intBoard));
  106. int    stake PROTO(());
  107. int    spread PROTO(());
  108. int    respreicen PROTO(());
  109. int    tryPlay PROTO((short, short, short));
  110. int    saveState PROTO(());
  111. int    restoreState PROTO(());
  112. short    tencen PROTO((short, short));
  113. int    genConnects PROTO(());
  114. int    sortLibs PROTO(());
  115.  
  116.  
  117. /*-- from xinterface.c --*/
  118.  
  119. void    intrMoveReport PROTO((enum bVal,char *,char *));
  120. void    intrPrisonerReport PROTO(( short, short ));
  121.  
  122. #ifdef __cplusplus
  123. }
  124. #endif
  125.  
  126. #endif
  127.