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_data.h < prev    next >
C/C++ Source or Header  |  1993-01-02  |  6KB  |  288 lines

  1. /* amiga_data.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 data. */
  26.  
  27. extern struct IFFHandle        *ClipHandle;
  28.  
  29. extern STRPTR             ClipBuffer,
  30.                  ClipIndex;
  31.  
  32. extern LONG             ClipSize,
  33.                  ClipLength;
  34.  
  35. extern Bool             ClipInput;
  36.  
  37.     /* Global library pointers, don't touch! */
  38.  
  39. extern struct ExecBase        *SysBase;
  40.  
  41. extern struct IntuitionBase    *IntuitionBase;
  42. extern struct GfxBase        *GfxBase;
  43.  
  44. extern struct Library        *WorkbenchBase,
  45.                 *DiskfontBase,
  46.                 *IFFParseBase,
  47.                 *GadToolsBase,
  48.                 *UtilityBase,
  49.                 *LayersBase,
  50.                 *IconBase,
  51.                 *AslBase;
  52.  
  53. extern struct Device        *ConsoleDevice;
  54.  
  55.     /* Workbench startup message. */
  56.  
  57. extern struct WBStartup        *WBenchMsg;
  58.  
  59.     /* Screen and window data. */
  60.  
  61. extern struct Window        *Window;
  62. extern struct Menu        *Menu;
  63. extern struct RastPort        *RPort;
  64.  
  65. extern struct Screen        *DefaultScreen,
  66.                 *Screen;
  67. extern APTR             VisualInfo;
  68. extern UBYTE             Depth,
  69.                  DepthMask;
  70.  
  71.     /* Default window title. */
  72.  
  73. extern TEXT             WindowTitle[AMIGADOS_NAME_LIMIT + 1];
  74.  
  75.     /* Global flags. */
  76.  
  77. extern Bool             UseCustomScreen,
  78.                  WindowIsActive,
  79.                  LibsOpened,
  80.                  FillLines,
  81.                  NewOS;
  82.  
  83.     /* Console IO data. */
  84.  
  85. extern struct IOStdReq        *ConRequest;
  86. extern struct InputEvent    *InputEvent;
  87. extern STRPTR             InputEventBuffer;
  88.  
  89. extern LONG             CursorX,
  90.                  CursorY,
  91.                  SpaceWidth,
  92.                  LastCursorX,
  93.                  LastCursorY,
  94.                  OldCursorWidth,
  95.                  NewCursorWidth,
  96.                  DefaultCursorWidth;
  97.  
  98. extern int             MenuLockCount;
  99.  
  100. extern Bool             RedrawInputLine,
  101.                  CursorEnabled;
  102.  
  103.     /* Process and window tricks. */
  104.  
  105. extern struct Process        *ThisProcess;
  106. extern APTR             WindowPtr;
  107.  
  108.     /* Timer data. */
  109.  
  110. extern struct MsgPort        *TimePort;
  111. extern struct timerequest    *TimeRequest;
  112.  
  113.     /* Workbench appwindow support. */
  114.  
  115. extern struct MsgPort        *WorkbenchPort;
  116. extern struct AppWindow        *WorkbenchWindow;
  117.  
  118.     /* The name of the project to restore. */
  119.  
  120. extern TEXT             ProjectName[MAX_FILENAME_LENGTH];
  121.  
  122.     /* A temporary string buffer. */
  123.  
  124. extern TEXT             TempBuffer[BUFFER_LENGTH];
  125.  
  126.     /* List of windows blocked. */
  127.  
  128. extern struct BlockedWindow    *BlockedWindows;
  129.  
  130.     /* Story file name. */
  131.  
  132. extern char            *StoryName;
  133.  
  134.     /* Story serial number. */
  135.  
  136. extern ULONG             StorySerial,
  137.                  StoryRelease,
  138.                  StoryIndex;
  139.  
  140.     /* Default story file name and file
  141.      * extension.
  142.      */
  143.  
  144. extern char            *StoryNames[],
  145.                 *StoryExtensions[];
  146.  
  147.     /* Two different fonts. */
  148.  
  149. extern struct TextFont        *PropFont,
  150.                 *FixedFont,
  151.                 *ThisFont;
  152.  
  153.     /* Disk font support. */
  154.  
  155. extern struct TextFont        *ListFont,
  156.                 *TextFont;
  157.  
  158. extern TEXT             ListFontName[MAXFONTPATH],
  159.                  TextFontName[MAXFONTPATH];
  160.  
  161. extern LONG             FontSize;
  162.  
  163. extern struct TextAttr         ListFontAttr,
  164.                  TextFontAttr;
  165.  
  166.     /* Text font dimensions. */
  167.  
  168. extern UWORD             TextFontWidth,
  169.                  TextFontHeight;
  170.  
  171.     /* Window dimensions. */
  172.  
  173. extern WORD             WindowWidth,
  174.                  OldWindowWidth,
  175.                  OldWindowHeight,
  176.                  WindowBorderLeft,
  177.                  WindowBorderRight,
  178.                  WindowBorderTop,
  179.                  WindowBorderBottom;
  180.  
  181.     /* Screen characteristics. */
  182.  
  183. extern LONG             ConNumLines,
  184.                  ConLinesPrinted,
  185.                  ConLineContext,
  186.                  ConLineIndent,
  187.                  ConLineMargin;
  188.  
  189.     /* Text and background pens. */
  190.  
  191. extern LONG             ConTextPen,
  192.                  ConBackPen;
  193.  
  194.     /* Fixed status window support. */
  195.  
  196. extern LONG             ConNumStatusLines;
  197. extern int             ConOutputWindow;
  198.  
  199.     /* History management. */
  200.  
  201. extern struct StringBuffer     HistoryBuffer[HISTORY_LINES];
  202. extern int             LastHistory;
  203.  
  204.     /* Function key support. */
  205.  
  206. extern struct StringBuffer     FunctionKeys[NUM_FKEYS];
  207.  
  208.     /* Fake input buffer. */
  209.  
  210. extern TEXT             InputBuffer[INPUT_LENGTH];
  211. extern STRPTR             InputIndex;
  212.  
  213.     /* Data to be located in chip-memory. */
  214.  
  215. extern UWORD            *ChipData;
  216.  
  217.     /* Pull-down menu definitions. */
  218.  
  219. extern struct NewMenu         ConMenuConfig[NUM_MENUS];
  220.  
  221.     /* Stopwatch mouse pointer data. */
  222.  
  223. extern UWORD             StopwatchData[(1 + STOPWATCH_HEIGHT + 1) * 2];
  224.  
  225.     /* File requester support. */
  226.  
  227. extern struct FileRequester    *GameFileRequest;
  228.  
  229.     /* Game file release and serial numbers. */
  230.  
  231. extern LONG             SerialNumbers[][3];
  232.  
  233.     /* Type 3 game titles. */
  234.  
  235. extern char            *Titles[NUM_GAMES];
  236.  
  237.     /* Type 3 game authors. */
  238.  
  239. extern char            *Authors[NUM_GAMES];
  240.  
  241.     /* Type 3 game levels. */
  242.  
  243. extern int             GameLevels[NUM_GAMES];
  244. extern char            *Levels[LEVEL_EXPERT + 1];
  245.  
  246.     /* Transcript file support. */
  247.  
  248. extern FILE            *ScriptFile;
  249. extern TEXT             ScriptFileName[MAX_FILENAME_LENGTH];
  250. extern int             ScriptWidth;
  251. extern Bool             ScriptAborted;
  252. extern int            *ScriptPadLen,
  253.                 *ScriptPadSkip,
  254.                  ScriptPadWidth;
  255. extern char            *ScriptPadBuffer;
  256.  
  257.  
  258.     /* Sound support. */
  259.  
  260. extern struct IOAudio        *SoundRequestLeft,
  261.                 *SoundRequestRight,
  262.                 *SoundControlRequest;
  263. extern struct MsgPort        *SoundPort;
  264.  
  265.     /* Sound file search path. */
  266.  
  267. extern char            *SoundName,
  268.                 *SoundPath;
  269.  
  270.     /* Sound file data. */
  271.  
  272. extern int             SoundNumber;
  273. extern APTR             SoundData;
  274. extern LONG             SoundLength;
  275.  
  276.     /* Hidden drawing area. */
  277.  
  278. extern struct BitMap        *PadBitMap;
  279. extern struct Layer_Info    *PadLayerInfo;
  280. extern struct Layer        *PadLayer;
  281. extern struct RastPort        *PadRPort;
  282. extern LONG             PadBitMapWidth,
  283.                  PadBitMapHeight;
  284. extern int            *PadSkip,
  285.                 *PadLen;
  286. extern LONG             PadWidth;
  287.  
  288.