home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / drgnsmth.cpt / Dragonsmith 1.1 / Base files / Main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-10  |  918 b   |  37 lines

  1. /*
  2.     Main.c
  3.     
  4.     Main file for Dragon projects
  5.     
  6.     Copyright ⌐ 1992 by Paul M. Hoffman
  7.     Send comments or suggestions to paul.hoffman@um.cc.umich.edu
  8.     
  9.     This source code may be freely used, altered, and distributed in any way as long as:
  10.         1.    It is GIVEN away rather than sold (except as expressly permitted by the author)
  11.         2.    This statement and the above copyright notice are left intact.
  12.     
  13.     Created    24 Apr 1992    Extracted from Dragon.c
  14.     Modified    01 May 1992    No longer calls Test ╤ Dragon::Run will do so when debugging
  15.             24 Aug 1992    We now correctly delete gDragon at the end (to make sure that its destructor method(s) get called!)
  16.     
  17. */
  18.  
  19. #include    "Dragon.h"
  20.  
  21. Dragon    *gDragon;        // This is it ╤ the global dragon!
  22.  
  23. void main (void);
  24. Dragon *CreateGDragon (void);
  25.  
  26. void main (void)
  27. {
  28.     gDragon = CreateGDragon ();
  29.     if (gDragon != NULL) {
  30.         gDragon->Start ();
  31.         gDragon->Run ();
  32.         gDragon->Finish ();
  33.     }
  34.     delete gDragon;
  35. }
  36.  
  37.