home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #3 / amigamamagazinepolishissue1998.iso / szachy / gnu / amyboard-3.2.pl2 / backend.h < prev    next >
C/C++ Source or Header  |  1995-03-08  |  5KB  |  115 lines

  1. /*
  2.  * backend.h -- Interface exported by XBoard back end
  3.  * $Id: backend.h,v 1.19 1995/03/09 00:43:28 mann Exp $
  4.  *
  5.  * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.
  6.  * Enhancements Copyright 1992-95 Free Software Foundation, Inc.
  7.  *
  8.  * The following terms apply to Digital Equipment Corporation's copyright
  9.  * interest in XBoard:
  10.  * ------------------------------------------------------------------------
  11.  * All Rights Reserved
  12.  *
  13.  * Permission to use, copy, modify, and distribute this software and its
  14.  * documentation for any purpose and without fee is hereby granted,
  15.  * provided that the above copyright notice appear in all copies and that
  16.  * both that copyright notice and this permission notice appear in
  17.  * supporting documentation, and that the name of Digital not be
  18.  * used in advertising or publicity pertaining to distribution of the
  19.  * software without specific, written prior permission.
  20.  *
  21.  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  22.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  23.  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  24.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  25.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  26.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  27.  * SOFTWARE.
  28.  * ------------------------------------------------------------------------
  29.  *
  30.  * The following terms apply to the enhanced version of XBoard distributed
  31.  * by the Free Software Foundation:
  32.  * ------------------------------------------------------------------------
  33.  * This program is free software; you can redistribute it and/or modify
  34.  * it under the terms of the GNU General Public License as published by
  35.  * the Free Software Foundation; either version 2 of the License, or
  36.  * (at your option) any later version.
  37.  *
  38.  * This program is distributed in the hope that it will be useful,
  39.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  40.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  41.  * GNU General Public License for more details.
  42.  *
  43.  * You should have received a copy of the GNU General Public License
  44.  * along with this program; if not, write to the Free Software
  45.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  46.  * ------------------------------------------------------------------------
  47.  */
  48. extern GameMode gameMode;
  49. extern int pausing, cmailMsgLoaded, flipView;
  50. extern FILE *fromUserFP, *toUserFP, *debugFP;
  51.  
  52. void SetWhiteToPlayEvent P((void));
  53. void SetBlackToPlayEvent P((void));
  54. void InitBackEnd1 P((void));
  55. void InitBackEnd2 P((void));
  56. int IsPromotion P((int fromX, int fromY, int toX, int toY));
  57. int OKToStartUserMove P((int x, int y));
  58. void Reset P((int redraw));
  59. void ResetGameEvent P((void));
  60. int LoadGame P((FILE *f, int n, char *title));
  61. int ReloadGame P((int offset));
  62. int SaveGame P((FILE *f, int dummy, char *dummy2));
  63. int LoadPosition P((FILE *f, int n, char *title));
  64. int SavePosition P((FILE *f, int dummy, char *dummy2));
  65. void EditPositionEvent P((void));
  66. void FlipViewEvent P((void));
  67. void MachineWhiteEvent P((void));
  68. void MachineBlackEvent P((void));
  69. void TwoMachinesEvent P((void));
  70. void EditGameEvent P((void));
  71. void IcsClientEvent P((void));
  72. void ForwardEvent P((void));
  73. void BackwardEvent P((void));
  74. void ToEndEvent P((void));
  75. void ToStartEvent P((void));
  76. void RevertEvent P((void));
  77. void RetractMoveEvent P((void));
  78. void MoveNowEvent P((void));
  79. void TruncateGameEvent P((void));
  80. void PauseEvent P((void));
  81. void CallFlagEvent P((void));
  82. void AcceptEvent P((void));
  83. void DeclineEvent P((void));
  84. void DrawEvent P((void));
  85. void AbortEvent P((void));
  86. void AdjournEvent P((void));
  87. void ResignEvent P((void));
  88. void StopObservingEvent P((void));
  89. void StopExaminingEvent P((void));
  90. void ShowThinkingEvent P((int newState));
  91. void HintEvent P((void));
  92. void BookEvent P((void));
  93. void AboutGameEvent P((void));
  94. void ExitEvent P((int status));
  95. char *DefaultFileName P((char *));
  96. void UserMoveEvent P((int fromX, int fromY, int toX, int toY, int promoChar));
  97. void DecrementClocks P((void));
  98. char *TimeString P((long millisec));
  99. void LoadGameLoop P((void));
  100. void DisplayBothClocks P((void));
  101. void EditPositionMenuEvent P((ChessSquare selection, int x, int y));
  102. int ParseTimeControl P((char *tc));
  103. void ProcessICSInitScript P((FILE * f));
  104. void EditCommentEvent P((void));
  105. void ReplaceComment P((int index, char *text));
  106. void AppendComment P((int index, char *text));
  107. void ReloadCmailGameEvent P((int unregister));
  108. void MailMoveEvent P((void));
  109.  
  110. int StrCaseCmp P((char *s1, char *s2));
  111. char *StrStr P((char *string, char *match));
  112. int ToLower P((int c));
  113. int ToUpper P((int c));
  114. char *StrSave P((char *s));
  115.