home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c100 / 1.ddi / SNAV0111.ZIP / DEMO3.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-16  |  1.7 KB  |  65 lines

  1. //          ┌───────┐
  2. //    ─────────>│ AVNER │
  3. //    ─────────>│  BEN  │──────> Software Engineering Method
  4. //          └───────┘
  5. //    10 Dov-Hoz st. Tel-Aviv 63416 Israel tel. 972-3-221535
  6.  
  7. // The Screen NAVigator, ver 1.10 April 1990
  8. // Copyright (c) 1989 by Avner Ben
  9. // Snav is not, and never was, free software.
  10. // for conditions for use refer to file "copyrigh.txt"
  11.  
  12. // The Screen Navigator is an object-oriented device-independent
  13. // character-graphics driver package, written in the C++ language,
  14. // distributed in the form of C++ source code.
  15. // For further information refer to the documentation files.
  16.  
  17. // this simple example is intended as a template to be extended and modified
  18. // by the user, provided the above title and copyright notice are unchanged
  19. // and are not ommitted.
  20.  
  21. /***************************************************************************/
  22.  
  23. // demonstration part 3 - headers.
  24. // Sample specific shapes that may be implemented by the user after
  25. // the generic shape of snav-2.
  26.  
  27. // History:
  28. // 2.11.89 avner ben coded.
  29. /////// snav v1.1
  30. // 8.3.90  avner ben - C++ v2.0 upgrade.
  31.  
  32. // Site history (of this copy):
  33. // __.__.__ ____________ : __________________.
  34.  
  35. #ifndef SNAV2_H
  36. #include "snav2.hpp"
  37. #endif
  38.  
  39. class zigzag : public shape
  40. { // regular diagonal line
  41.     private :
  42.         int len;
  43.         direction fstdir, nextdir;
  44.         weight_d wgt;
  45.  
  46.     public :
  47.         zigzag(int len, const direction &indir1, const direction &indir2,
  48.          const weight_d &wgt=h1v1);
  49.         void list (panel *scr, point_pos *pt);
  50. } ;
  51.  
  52. class spiral : public shape
  53. { // spiral curve
  54.  
  55.     private :
  56.         int len;
  57.         direction dir;
  58.         weight_d wgt;
  59.  
  60.     public :
  61.         spiral(int startlen, const direction &dir, const weight_d &wgt=h1v1);
  62.         void list (panel *scr, point_pos *pt);
  63. } ;
  64.  
  65.