home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Pascal / Snippets / PNL Libraries / Libraries / SpriteWorld / SpriteWorld files / Utils C / SWGameUtils.h < prev   
Encoding:
Text File  |  1996-10-24  |  983 b   |  42 lines  |  [TEXT/KAHL]

  1. ///--------------------------------------------------------------------------------------
  2. //    SWGameUtils.h
  3. //
  4. //    Portions are copyright: © 1991-94 Tony Myles, All rights reserved worldwide.
  5. //
  6. //    Description:    some utility functions for games
  7. ///--------------------------------------------------------------------------------------
  8.  
  9.  
  10. #ifndef __SWGAMEUTILS__
  11. #define __SWGAMEUTILS__
  12.  
  13. #ifndef __QUICKDRAW__
  14. #include <QuickDraw.h>
  15. #endif
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21.  
  22. pascal  void        Randomize( void );
  23. pascal short        GetRandom(short min, short max);
  24. pascal void        CenterRect(Rect* rectA, Rect* rectB);
  25. pascal void        AllowKeyUpEvents( void );
  26. pascal void        RestoreEventMask( void );
  27.  
  28. pascal RgnHandle    HideMenuBar(GrafPtr grafPort);
  29. pascal void        ShowMenuBar(GrafPtr grafPort);
  30.  
  31. pascal short        GetDepthFromWindow( WindowPtr theWindow );
  32. pascal short        GetScreenDepth( GDHandle theGDH );
  33. pascal Boolean        HasSystem7( void );
  34.  
  35.  
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39.  
  40.  
  41. #endif /* __SWGAMEUTILS__ */
  42.