home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Games / On The Edge 3.0 / main.h < prev    next >
Encoding:
Text File  |  1994-12-01  |  1.1 KB  |  55 lines  |  [TEXT/KAHL]

  1. // main.h
  2.  
  3. void StartGame( void );
  4. void EmptyGrid( void );
  5. void PromptMessage( short messageID );
  6. void ClearMessage( void );
  7. void EventLoop( void );
  8. void HandleMenus( long selection );
  9. void HandleClick( Point *wherePtr );
  10. void RedrawWindow( void );
  11. void StartSelecting( void );
  12. void FinishSelecting( void );
  13. void DrawNewCard( void );
  14. void SelectMultiples( Point *wherePtr );
  15. void PlaceCards( Point *wherePtr );
  16. void DrawCard( Byte card, short horiz, short vert );
  17. void DrawBWCard( Rect *myRectP, short mySuit, short myValue );
  18. void DrawColorCard( Rect *myRectP, short mySuit, short myValue );
  19. void LabelGrid( short horiz, short vert );
  20. void OutlineButton( DialogPtr theDialog, short which );
  21. void DrawSICN( Rect *destRect, Handle SICNhandle, short which );
  22. void Initialize( void );
  23. void RetrieveResources( void );
  24. void Shuffle( void );
  25. short RandomBefore( short what );
  26. void DrawSquare( short x, short y );
  27.  
  28. #define Empty 0xFF
  29.  
  30. enum
  31. {
  32.     mApple = 128,
  33.     mFile,
  34.     mEdit,
  35.     iAbout = 1,
  36.     iPlay = 1,
  37.     iHelp,
  38.     iQuit = 4,
  39.     iYes = 1,
  40.     iNo
  41. };
  42.  
  43. enum
  44. {
  45.     msgSelectMultOf10 = 1,
  46.     msgGameOver,
  47.     msgYouWin
  48. };
  49.  
  50. enum
  51. {
  52.     Jack = 11,
  53.     Queen,
  54.     King
  55. };