/*
**	$VER: gamesbase.h 0.4 (02.10.96)
**	Includes Release xx.xx
**
**	Definition of the games.library base structure.
**
**	(C) Copyright 1996 DreamWorld Productions.
**	    All Rights Reserved
*/

#ifndef GAMES_GMSBASE_H
#define GAMES_GMSBASE_H

#ifndef EXEC_TYPES_H
#include "exec/types.h"
#endif
#ifndef EXEC_LISTS_H
#include <exec/lists.h>
#endif
#ifndef EXEC_LIBRARIES_H
#include <exec/libraries.h>
#endif

 struct	GMSBase
  {
  struct Library LibNode;         /* Standard library stuff */
  
  ULONG  RandomSeed;              /* Random seed */
  WORD   OldMouseX1;              /* Private */
  WORD   OldMouseY1;              /* Private */
  WORD   OldMouseX2;              /* Private */
  WORD   OldMouseY2;              /* Private */

  UWORD  VBL_Position;            /* VBL Position (End of Screen mark) */
  APTR   CurrentScreen;           /* Ptr to currently displayed screen */
  
  UWORD  BlitterUsed;             /* 0 = Free, 1 = Grabbed */
  UWORD  BlitterPriority;         /* 0 = NoPriority, 1 = Priority */

  UWORD  ScrSwitch;               /* Private */
  APTR   PRF_JoyEmuKeys;
  APTR   PRF_CallingList;
  
  APTR   PRF_ScreenPrefs;         /* Location of the file (offset from */
  APTR   PRF_BlitterPrefs;        /* the start of the prefs file) */
  APTR   PRF_SoundPrefs;
  APTR   PRF_NetworkPrefs;
  APTR   PRF_VectorPrefs;
  APTR   PRF_DebugPrefs;

  UWORD  PRF_JoyType1;            /* Type of Joystick in port 1 */
  UWORD  PRF_JoyType2;            /* Type of Joystick in port 2 */
  UWORD  PRF_JoyType3;            /* Type of Joystick in port 3 */
  UWORD  PRF_JoyType4;            /* Type of Joystick in port 4 */
  UBYTE  PRF_JoyEmulation;        /* Joystick emulation on/off */
  UBYTE  PRF_Language;            /* Language */
  UBYTE  PRF_UserPri;             /* User priority */
  UBYTE  PRF_ScreenSwitch;        /* 0 = To Window, 1 = To Screen */

  UBYTE  PRF_AmigaChipSet;        /* OCS/ECS/AGA */
  UBYTE  PRF_ModePromote;         /* Promotion of the monitor sync */
  UBYTE  PRF_GfxBoard;            /* GfxBoard number, if any */
  UBYTE  PRF_VectorDetail;        /* Level of vector detail */
  UBYTE  PRF_Music;               /* Music on or off? */
  UBYTE  PRF_Sound;               /* Sound on or off? */
  UBYTE  PRF_Network;             /* Type of networking used */
  UBYTE  PRF_Empty;
  UWORD  PRF_TopOfScrX;           /* Top of Screen X */
  UWORD  PRF_TopOfScrY;           /* Top of Screen Y */
  };

#define GMSNAME "games.library"

#endif /* GAMES_GMSBASE_H */

