home *** CD-ROM | disk | FTP | other *** search
- // ┌───────┐
- // ─────────>│ AVNER │
- // ─────────>│ BEN │──────> Software Engineering Method
- // └───────┘
- // 10 Dov-Hoz st. Tel-Aviv 63416 Israel tel. 972-3-221535
-
- // The Screen NAVigator, ver 1.10 April 1990
- // Copyright (c) 1989 by Avner Ben
- // Snav is not, and never was, free software.
- // for conditions for use refer to file "copyrigh.txt"
-
- // The Screen Navigator is an object-oriented device-independent
- // character-graphics driver package, written in the C++ language,
- // distributed in the form of C++ source code.
- // For further information refer to the documentation files.
-
- // this simple example is intended as a template to be extended and modified
- // by the user, provided the above title and copyright notice are unchanged
- // and are not ommitted.
-
- /***************************************************************************/
-
- // demonstration part 3 - headers.
- // Sample specific shapes that may be implemented by the user after
- // the generic shape of snav-2.
-
- // History:
- // 2.11.89 avner ben coded.
- /////// snav v1.1
- // 8.3.90 avner ben - C++ v2.0 upgrade.
-
- // Site history (of this copy):
- // __.__.__ ____________ : __________________.
-
- #ifndef SNAV2_H
- #include "snav2.hpp"
- #endif
-
- class zigzag : public shape
- { // regular diagonal line
- private :
- int len;
- direction fstdir, nextdir;
- weight_d wgt;
-
- public :
- zigzag(int len, const direction &indir1, const direction &indir2,
- const weight_d &wgt=h1v1);
- void list (panel *scr, point_pos *pt);
- } ;
-
- class spiral : public shape
- { // spiral curve
-
- private :
- int len;
- direction dir;
- weight_d wgt;
-
- public :
- spiral(int startlen, const direction &dir, const weight_d &wgt=h1v1);
- void list (panel *scr, point_pos *pt);
- } ;
-
-