home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / BlobMgr / Demo Folder / Main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-05  |  946 b   |  56 lines  |  [TEXT/KAHL]

  1. /*
  2.  * Blob Manager Demonstration:  Main module
  3.  *
  4.  * 25 June 1986    Paul DuBois
  5.  */
  6.  
  7. # include    "TransSkel.h"
  8.  
  9. # include    "BlobMgr.h"
  10. # include    "BlobDemo.h"
  11.  
  12.  
  13. int
  14. main (void)
  15. {
  16. short    i;
  17.  
  18.     SkelInit ((SkelInitParamsPtr) nil);    /* initialize TransSkel */
  19.  
  20.     randSeed = TickCount ();
  21.  
  22.     SetupMenus ();
  23.     
  24.     /*
  25.      * Initialize the various scenarios.  Any of them may be entirely
  26.      * disabled by commenting out the initialization line.
  27.      */
  28.  
  29. /*
  30. */
  31.     WolfInit ();
  32.     TohInit ();
  33.     TttInit ();
  34.     StatesInit ();
  35.     PyrInit ();
  36.     PongInit ();
  37.     PegInit ();
  38.     MagicInit ();
  39.     HebInit ();
  40.     HangInit ();
  41.     FggInit ();
  42.     FshInit ();
  43.     FarInit ();
  44.     SwapInit ();
  45.     RadixInit ();
  46.     AnagramInit ();
  47.  
  48.     AddWindowTitles ();                /* add window names to Windows menu */
  49.  
  50.     SkelEventLoop ();                /* loop 'til Quit selected */
  51.  
  52.     DisposeBlobSets ();                /* shut down the Blob Manager */
  53.     CloseAllWindows ();                /* close windows in back-to-front order */
  54.     SkelCleanup ();                    /* shut down TransSkel */
  55. }
  56.