home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / ACL / Animation Class Library / Headers / AnimCollision.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-01  |  1.4 KB  |  57 lines  |  [TEXT/MPCC]

  1.  
  2. /********************************************
  3.  **** Animation Class Library V1.0 © 1994 Yves Schmid & Alia Development
  4.  ****
  5.  **** AnimCollision.h
  6.  ****
  7.  **** Created:      11 August 1994
  8.  **** Modified:     01 Septembre 1994
  9.  **** Version:      0
  10.  **** Compatible:   C++, Mac System 7
  11.  ****
  12.  **** Description:  AnimCollision is a special kind of animation object which only
  13.  ****                produces collision. AnimCollision never draws anything on screen.
  14.  ****
  15.  ****                AnimCollision is a child class of the AnimMask class. You can use the
  16.  ****                AnimMask methods to manipulate the mask.
  17.  ****
  18.  *******************/
  19.  
  20. #ifndef AnimCollision_H
  21. #define AnimCollision_H
  22.  
  23.  
  24. #include "AnimMask.h"
  25.  
  26. class AnimBase;
  27.  
  28. class AnimCollision: public AnimMask
  29. {
  30.  
  31.     //***********************************************************
  32.     //.............. P U B L I C   M E T H O D S.................
  33.  
  34.     public:
  35.  
  36.  
  37.     // Datas passed are copied, so you don't have to keep them in memory.
  38.  
  39.     AnimCollision(AnimSupervisor *base, long resID);        // Initializes with a PICT resource
  40.     AnimCollision(AnimSupervisor *base, AnimGfx *agfx);        // Initializes with an AnimGfx object
  41.     AnimCollision(AnimSupervisor *base);                    // Empty mask
  42.  
  43.     ~AnimCollision(void);
  44.  
  45.  
  46.  
  47.     //***********************************************************
  48.     //..........................................................
  49.     // You should not call the following methods!
  50.  
  51.     Boolean draw(short basex =0, short basey =0);
  52. };
  53.  
  54.  
  55. #endif
  56.  
  57.