home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / AVATAR.HPP < prev    next >
C/C++ Source or Header  |  1997-07-05  |  841b  |  45 lines

  1. // +++Date last modified: 05-Jul-1997
  2.  
  3. // Class to display AVATAR/0+
  4. // public domain
  5. // by David Nugent <davidn@unique.blaze.net.au>
  6. // 3:632/348@fidonet
  7.  
  8. #if !defined(_avatar_h)
  9. #define _avatar_h
  10. #include "scrintrp.hpp"
  11.  
  12. class avatar : public scrinterp
  13. {
  14.   typedef void (avatar::*pdisp)(int ch);
  15.   public:
  16.     avatar(video & v);
  17.  
  18.     virtual void putch(int ch);
  19.     virtual void reset();
  20.  
  21.   private:
  22.     pdisp dispfunc;         // Display function (state)
  23.  
  24.     int counter;
  25.     int arg1;
  26.     int rptlen;
  27.     char rptbuf[256];
  28.     cell_t area[5];
  29.  
  30.     void rptchar(int ch);
  31.     void setvideo(int ch);
  32.     void setattr(int ch);
  33.     void setpos(int ch);
  34.     void rptseq(int ch);
  35.     void scroll(int ch);
  36.     void clrarea(int ch);
  37.     void setarea(int ch);
  38.  
  39.     void resetattr(int ch);
  40. };
  41.  
  42. #endif
  43.  
  44.  
  45.