home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / HACKSRC.ZIP / ESHK.H < prev    next >
C/C++ Source or Header  |  1985-10-16  |  776b  |  25 lines

  1. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  2. /* eshk.h - version 1.0.2 : added 'following' */
  3.  
  4. #define    BILLSZ    200
  5. struct bill_x {
  6.     unsigned bo_id;
  7.     unsigned useup:1;
  8.     unsigned bquan:7;
  9.     unsigned price;        /* price per unit */
  10. };
  11.  
  12. struct eshk {
  13.     long int robbed;    /* amount stolen by most recent customer */
  14.     boolean following;    /* following customer since he owes us sth */
  15.     schar shoproom;        /* index in rooms; set by inshop() */
  16.     coord shk;        /* usual position shopkeeper */
  17.     coord shd;        /* position shop door */
  18.     int shoplevel;        /* level of his shop */
  19.     int billct;
  20.     struct bill_x bill[BILLSZ];
  21.     int visitct;        /* nr of visits by most recent customer */
  22.     char customer[PL_NSIZ];    /* most recent customer */
  23.     char shknam[PL_NSIZ];
  24. };
  25.