home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Games / NeXTGo-3.0-MIS / GoApp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-04  |  4.1 KB  |  179 lines

  1. #include "comment.header"
  2.  
  3. /* Generated by Interface Builder */
  4.  
  5. /* $Id: GoApp.h,v 1.4 1997/11/04 16:50:42 ergo Exp $ */
  6.  
  7. /*
  8.  * $Log: GoApp.h,v $
  9.  * Revision 1.4  1997/11/04 16:50:42  ergo
  10.  * ported to OpenStep
  11.  *
  12.  * Revision 1.3  1997/07/06 19:38:21  ergo
  13.  * actual version
  14.  *
  15.  * Revision 1.4  1997/05/30 18:44:14  ergo
  16.  * Added an Inspector
  17.  *
  18.  * Revision 1.3  1997/05/04 18:57:17  ergo
  19.  * added time control for moves
  20.  *
  21.  */
  22.  
  23. #import <AppKit/NSApplication.h>
  24. #include "history.h"
  25. #include "smartgo.h"
  26. #include "igs.h"
  27. #include "godict.h"
  28. #include "GoServer.h"
  29. #import "Controller.h"
  30.  
  31. extern unsigned char p[19][19], l[19][19], ma[19][19], ml[19][19];
  32. extern char special_characters[19][19];
  33. extern int hist[19][19], currentMoveNumber;
  34. extern int rd, lib, play, pass, handicap, MAXX, MAXY;
  35. extern int currentStone, opposingStone, blackCaptured, whiteCaptured;
  36. extern int blackTerritory, whiteTerritory, SmartGoGameFlag, initialization;
  37. extern float black_Score, white_Score;
  38. extern int blackCapturedKoI, blackCapturedKoJ, whiteCapturedKoI, whiteCapturedKoJ;
  39. extern int bothSides, neitherSide, blackPassed, whitePassed, manScoreTemp;
  40. extern BOOL typeOfScoring, manualScoring, whiteSide, blackSide, AGAScoring;
  41. extern int opn[9];                               // opening pattern flag
  42. extern BOOL gameType;
  43. extern BOOL finished;
  44. extern gameHistory gameMoves[500];
  45. extern int lastMove;
  46. extern node *SGgameMoves, *currentNode;
  47. extern FILE *smartGoInputFile;
  48. extern char *SGfile, *currentSGfilePosition;
  49. extern char *IGSStatusText, IGSPasswordText[20], IGSLoginText[20];
  50.  
  51. #ifndef KOMI
  52. #define KOMI 5.5
  53. #endif
  54.  
  55. @interface GoApp:NSApplication
  56. {
  57.   NSTimer *timer;
  58.   id  gameWindow;
  59.   id  MainGoView;
  60.   id  handicapSlider;
  61.   id  handicapText;
  62.   id  BlackPlayer;
  63.   id  WhitePlayer;
  64.   id  prefPanel;
  65.   id  savePrefsFlag;
  66.   id  sizeSlider;
  67.   id  sizeText;
  68.   id  smartGoComments;
  69.   id  smartGoPanel;
  70.   id  smartGoNodeName;
  71.   id  smartGoNodeNumber;
  72.   id  smartgoVariants;
  73.   id  stepForwardButton;
  74.   id  stepBackwardButton;
  75.   id  jumpForwardButton;
  76.   id  jumpBackwardButton;
  77.   id  scoringMethod;
  78.   id  scoringType;
  79.   id  AGAscoringMethodFlag;
  80.   id  IGSCommand;
  81.   id  IGSSendButton;
  82.   id  IGSStatus;
  83.   id  IGSobserveNumber;
  84.   id  IGSPanel;
  85.   id  IGSfont;
  86.   id  IGSboldFont;
  87.   id  LoadGameText;
  88.   id  LoadGameWindow;
  89.   id  observeSelPanel;
  90.   id  observeScrollView;
  91.   id  observeMatrix;
  92.   id  observeBox;
  93.   id  observeCell;
  94.   id  loadMenuCell;
  95.   id  observeMenuCell;
  96.   id  unobserveMenuCell;
  97.   id  versionString;
  98.   id  transTypeMISC;
  99.   id  transTypeNAME;
  100.   id  transTypeCHAM;
  101.   id  transTypeTECH;
  102.   id  transTypePOLI;
  103.   id  transTypeDIGI;
  104.   id  transLangJP;
  105.   id  transLangCH;
  106.   id  transLangRK;
  107.   id  transLangGB;
  108.   id  transLangNL;
  109.   id  transLangGE;
  110.   id  transLangFR;
  111.   id  transLangSV;
  112.   id  transLangDG;
  113.   id  transLangCP;
  114.   id  translateWindow;
  115.   id  translateTerm;
  116.   id  translateResults;
  117.   id  translateButton;
  118.   id  formatMatrix;
  119.   id  controller;
  120.   id  gameInspector;
  121.   id  CommandSender;
  122. }
  123.  
  124. + (void)initialize;
  125. - showError: (const char *)errorMessage;
  126. - UserPass:sender;
  127. - stopGame:sender;
  128. - startGame:sender;
  129. - NewGame:sender;
  130. - SetPreferences:sender;
  131. - stepSmartGoFile:sender;
  132. - stepBackSmartGoFile:sender;
  133. - jumpSmartGoFile:sender;
  134. - jumpBackSmartGoFile:sender;
  135. - openNeXTGoFile:(const char*)aFile;
  136. - openSmartGoFile:(const char *)aFile;
  137. - displayNewSGNode;
  138. - AddSGComment:(char *)s;
  139. - AddSGVariantName:(char *)s;
  140. - SetSGNodeName:(char *)s;
  141. - IGSSendCommand:sender;
  142. - setCommandSender:(id)aSender;
  143. - connect:(GoServer*)server;
  144. - checkNetTraffic;
  145. - SetIGSStatus:(char *)s;
  146. - getGoView;
  147. - open:sender;
  148. - save:sender;
  149. - setFormat:sender;
  150.  
  151. /*
  152.   The following methods are related to the built-in dictionary
  153.   */
  154. - initTranslator:sender;
  155. - performTranslate:sender;
  156. - addTranslateResults:(char *)s;
  157. - translateOutput:(GODICT *)d;
  158.  
  159. /*
  160.   The following methods are the various commands for the Internet Go Server
  161.   */
  162.  
  163. - IGSOpenLoadGame:sender;
  164. - IGSLoadGame:sender;
  165. - IGSobserve:sender;
  166. - IGSunobserve:sender;
  167. - IGSdone:sender;
  168. - IGSquit:sender;
  169. - cellClicked:theCell;
  170. - sendCommand:sender;
  171. - gameCompleted;
  172.  
  173. - (void) checkingNetTraffic:(NSTimer *)aTimer;
  174.  
  175. @end
  176.  
  177.  
  178.  
  179.