home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1999 Spring / macformat-077.iso / Shareware Plus / Development / SpriteWorld 2.2 / SpriteWorld files / Utils / SWGameUtils.h < prev    next >
Encoding:
Text File  |  1998-08-06  |  1.1 KB  |  50 lines  |  [TEXT/CWIE]

  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. #ifndef __SOUND__
  18. #include "Sound.h"
  19. #endif
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25.  
  26. void        Randomize( void );
  27. short        GetRandom(short min, short max);
  28. void        CenterRect(Rect* rectA, Rect* rectB);
  29. void        AlignRect(Rect* rectP);
  30. void        AllowKeyUpEvents( void );
  31. void        RestoreEventMask( void );
  32.  
  33. RgnHandle    SWHideMenuBar(GrafPtr grafPort);
  34. void         KeepMenuBarHidden(GrafPtr grafPort);
  35. void        SWShowMenuBar(GrafPtr grafPort);
  36.  
  37. short        GetDepthFromGlobalRect( Rect* globalRect );
  38. short        GetDepthFromWindow( WindowPtr theWindow );
  39. short        GetGDeviceDepth( GDHandle theGDH );
  40. void        RestoreSystemPalette( void );
  41. Boolean        HasSystem7( void );
  42.  
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48.  
  49. #endif /* __SWGAMEUTILS__ */
  50.