home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / 500 / 471 / rccl151 < prev    next >
Text File  |  1987-03-02  |  776b  |  20 lines

  1. /*
  2.  * This is a unimplemented and undebugged attempt of replacing
  3.  * the motion requests parameter setting functions by macros in
  4.  * order to reduce the number of library entry points an improve
  5.  * the link time.
  6.  */
  7.  
  8.  
  9. #define setmod(m)       motionreq.mod = m;
  10. #define setime(ta, ts)  {motionreq.acct = ta; motionreq.sgt = ts;}
  11. #define setvel(t, r)    {motionreq.velt = t;  motionreq.velr = r;}
  12. #define evalfn(fn)      motionreq.fnt = fn;
  13. #define setconf(s)      motionreq.cfg = s;
  14. #define sample(m)       {int k = m;\
  15.             if (k < MINSAMPLE) k = MINSAMPLE;\
  16.             if (k > MAXSAMPLE) k = MAXSAMPLE;\
  17.             motionreq.smpl = k - k % HARDCLOCK;}
  18. #define move(p)         {motionreq.pst = (PST_PTR)p; movereq();}
  19. #define stop(t)         {motionreq.sgt = t; movereq();}
  20.