home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d8xx / d834 / pinfocom.lha / PInfoCom / pinfocom-3.0.lha / amiga_protos.h < prev    next >
C/C++ Source or Header  |  1992-11-04  |  4KB  |  104 lines

  1. /* amiga_protos.h
  2.  *
  3.  *  ``pinfocom'' -- a portable Infocom Inc. data file interpreter.
  4.  *  Copyright (C) 1987-1992  InfoTaskForce
  5.  *
  6.  *  This program is free software; you can redistribute it and/or modify
  7.  *  it under the terms of the GNU General Public License as published by
  8.  *  the Free Software Foundation; either version 2 of the License, or
  9.  *  (at your option) any later version.
  10.  *
  11.  *  This program is distributed in the hope that it will be useful,
  12.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  *  GNU General Public License for more details.
  15.  *
  16.  *  You should have received a copy of the GNU General Public License
  17.  *  along with this program; see the file COPYING.  If not, write to the
  18.  *  Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21. /*
  22.  * $Header$
  23.  */
  24.  
  25.     /* Clipboard support routines. */
  26.  
  27. VOID        ClipClose(VOID);
  28. LONG        ClipRead(STRPTR Buffer,const LONG Len);
  29. VOID        ClipSave(const STRPTR Buffer,const LONG Len);
  30. Bool        ClipOpen(VOID);
  31.  
  32.     /* Console text output and auxilary routines. */
  33.  
  34. Bool        ConLayerSetup(LONG Width,LONG Height);
  35. VOID        ConLayerCleanup(VOID);
  36. VOID        ConUnblockWindow(struct Window *Window);
  37. VOID        ConBlockWindow(struct Window *Window);
  38. WORD        ConCharWidth(const UBYTE Char);
  39. VOID        ConCursorOff(VOID);
  40. VOID        ConCursorOn(const int New);
  41. VOID        ConSet(const int X,const int Y,const int New);
  42. VOID        ConMove(const int Delta,const int New);
  43. VOID        ConClearEOL(VOID);
  44. VOID        ConCharBackspace(const int Delta,const int New);
  45. VOID        ConCharDelete(const int New);
  46. VOID        ConCharInsert(const UBYTE Char);
  47. VOID        ConScrollUp(VOID);
  48. VOID        ConPad(const char *Line,LONG Len,LONG Indent);
  49. VOID        ConWrite(const char *Line,LONG Len,LONG Indent);
  50. Bool        ConOpenLibs(VOID);
  51. VOID        ConCleanup(VOID);
  52. Bool        ConSetup(VOID);
  53. UBYTE        ConGetChar(const Bool SingleKey);
  54. VOID        ConSetColour(const int Colour);
  55. VOID        ConSetFont(const int Font);
  56. VOID        ConSetKey(const int Key,const STRPTR String,const int Len);
  57. VOID        ConPrintf(const char *Format,...);
  58. VOID        ConSwap(STRPTR a,STRPTR b,int Len);
  59. int        ConInput(char *Prompt,char *Input,const int MaxLen,const Bool DoHistory);
  60. VOID        ConPrintStatus(const char *Left,const char *Right);
  61. LONG        ConShowRequest(struct Window *Window,const STRPTR Text,const STRPTR Gadgets,...);
  62. Bool        ConQueryOption(int Option);
  63. VOID        ConUpdateMenus(VOID);
  64. VOID        ConLockMenus(VOID);
  65. VOID        ConUnlockMenus(VOID);
  66. char *        ConSplitLine(char *Line,int Len,Bool ReturnPrompt);
  67. VOID        ConPrintLine(const char *Buffer,int Len,int Indent,Bool PadLine);
  68. Bool        ConCheckStory(const char *Name);
  69. char *        ConLocateStory(const char *Directory,const char *Default);
  70. VOID        ConQueryStoryInformation(const char *Name);
  71. VOID        ConAbout(VOID);
  72.  
  73.     /* Game file selection routines. */
  74.  
  75. VOID        GameAdd(struct List *List,int Index,const char *FileName);
  76. Bool        GameMatch(const char *Name,const char *Pattern);
  77. VOID        GameMultiScan(struct List *GameList,const char *Pattern);
  78. char *        GameGetNodeName(struct List *List,const int Offset);
  79. VOID        GameFreeList(struct List *List);
  80. Bool        GameIsAssign(const STRPTR Name);
  81. struct List *    GameBuildList(const char *Pattern);
  82. char *        GameGetStoryName(const char *Pattern,struct Window *Window);
  83. VOID        GameCentreWindow(const struct Screen *Screen,const WORD WindowWidth,const WORD WindowHeight,WORD *LeftEdge,WORD *TopEdge);
  84. struct Gadget *    GameCreateGadgets(struct Gadget **GadgetArray,struct Gadget **GadgetList,const APTR VisualInfo,const struct List *Labels,const struct Screen *Screen,WORD *Width,WORD *Height);
  85. Bool        GameSelect(char *Name);
  86.  
  87.     /* Scripting support routines. */
  88.  
  89. VOID        ScriptPadCleanup(VOID);
  90. Bool        ScriptPadSetup(int Width);
  91. Bool        ScriptPad(const char *Line,int Len);
  92. Bool        ScriptWrite(const char *Buffer,const int Width);
  93. struct Gadget *    ScriptCreateGadgets(struct Gadget **GadgetArray,struct Gadget **GadgetList,const APTR VisualInfo,UWORD *Width,UWORD *Height,const struct Screen *Screen);
  94. Bool        ScriptGetPrinterName(STRPTR PrinterName,int *PrinterWidth);
  95. char *        ScriptSplitLine(char *Line,int Len,const Bool ReturnPrompt);
  96.  
  97.     /* Sound support routines. */
  98.  
  99. Bool        SoundInit(VOID);
  100. VOID        SoundExit(VOID);
  101. VOID        SoundAbort(VOID);
  102. VOID        SoundStop(VOID);
  103. VOID        SoundStart(VOID);
  104.