home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Life 1.0d2 / Control.h < prev    next >
Encoding:
Text File  |  1995-07-11  |  949 b   |  28 lines  |  [TEXT/MPCC]

  1. // Control.h
  2. // Interface to routines to control the progress of Mike's Life
  3. // Copyright ©1995 Michael D. Crawford.  All Rights Reserved.
  4. // 11 Jun 95 Mike Crawford crawford@scruznet.com
  5. //
  6. // Revision History:
  7. // 11 Jun 95    MDC    New today
  8.  
  9. #define kMaxWindows    16
  10. typedef struct{
  11.     void        *lifeData;            // Storage specific to the life implementation
  12.     void        *lifeModuleProcs;    // Pointer to record of pointers to functions to operate life
  13.     WindowPtr    win;
  14.     long        height;
  15.     long        width;
  16.     FSSpec        file;                // File that the data is kept in, not the module
  17. } tLifeWorldRecord, *tLifeWorldPtr;
  18.  
  19. void StartRunning( void );
  20. void StopRunning( void );
  21. tLifeWorldPtr NewLifeWorld( void );
  22. void FreeLifeWorld( tLifeWorldPtr worldPtr );
  23. tLifeWorldPtr WinToLifeWorld( WindowPtr win );
  24. void ToggleCell( tLifeWorldPtr worldPtr, long h, long v );
  25. void DrawCell( WindowPtr winPtr, tLifeWorldPtr worldPtr, long h, long v );
  26. void DoLifeNull( void );
  27. void InitControl( void );
  28.