home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / EV_201 / HANOI / MODULE.HPP < prev    next >
C/C++ Source or Header  |  1993-07-03  |  2KB  |  72 lines

  1. #if !defined (MODULE)                // Prevents multiple declarations errors
  2. #define MODULE
  3.  
  4.  
  5. /*
  6.    Module        : MODULE.HPP
  7.    Version       : 2.0
  8.    Revision date : July 3rd, 1993
  9.    Author(s)     : Remy Gendron
  10.  
  11.    Description   : Functions header file.
  12. */
  13.  
  14.  
  15. // Headers ------------------------------------------------------------------
  16.  
  17. #include "ttower.hpp"
  18. #include "twindow.hpp"
  19.  
  20.  
  21. // Macros -------------------------------------------------------------------
  22.  
  23. #include "stdmacro.h"                           // Standard macro definitions
  24.  
  25.  
  26. // TypeDefs -----------------------------------------------------------------
  27.  
  28. #include "stdtype.h"                             // Standard type definitions
  29. #include "prjtype.h"                       // This project's type definitions
  30.  
  31.  
  32. // Prototypes ---------------------------------------------------------------
  33.  
  34. #ifdef __cplusplus                        // Enables linking with C++ modules
  35. extern "C" {
  36. #endif
  37.  
  38. void about () ;                             // Displays infos on this program
  39.  
  40. config_info configuration                             // Configure the puzzle
  41. (
  42.    config_info config                         // Ptr to configuration's infos
  43. ) ;
  44.  
  45. void animation                                       // Animates the solution
  46. (
  47.    config_info config                           // Configuration informations
  48. ) ;
  49.  
  50. void hanoi                    // Finds solution for the current configuration
  51. (
  52.    int            nb_disks,                        // Number of disks to move
  53.    ttower   huge *source,                                 // Moves from tower
  54.    ttower   huge *target,                                   // Moves to tower
  55.    ttower   huge *temporary,                               // Temporary tower
  56.    twindow  huge *winptr2                             // Ptr to status window
  57. ) ;
  58.  
  59. void pause () ;                                     // Pauses after animation
  60.  
  61. void anim_input () ;                        // Checks inputs during animation
  62.  
  63.  
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67.  
  68.  
  69. // End Header File ----------------------------------------------------------
  70.  
  71. #endif
  72.