home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / os-include / graphics / collide.h < prev    next >
C/C++ Source or Header  |  1992-09-24  |  1KB  |  36 lines

  1. #ifndef    GRAPHICS_COLLIDE_H
  2. #define    GRAPHICS_COLLIDE_H
  3. /*
  4. **    $VER: collide.h 37.0 (07.01.91)
  5. **    Includes Release 39.108
  6. **
  7. **    include file for collision detection and control
  8. **
  9. **    (C) Copyright 1985-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. /* These bit descriptors are used by the GEL collide routines.
  14.  *  These bits are set in the hitMask and meMask variables of
  15.  *  a GEL to describe whether or not these types of collisions
  16.  *  can affect the GEL.  BNDRY_HIT is described further below;
  17.  *  this bit is permanently assigned as the boundary-hit flag.
  18.  *  The other bit GEL_HIT is meant only as a default to cover
  19.  *  any GEL hitting any other; the user may redefine this bit.
  20.  */
  21. #define BORDERHIT 0
  22.  
  23. /* These bit descriptors are used by the GEL boundry hit routines.
  24.  *  When the user's boundry-hit routine is called (via the argument
  25.  *  set by a call to SetCollision) the first argument passed to
  26.  *  the user's routine is the address of the GEL involved in the
  27.  *  boundry-hit, and the second argument has the appropriate bit(s)
  28.  *  set to describe which boundry was surpassed
  29.  */
  30. #define TOPHIT      1
  31. #define BOTTOMHIT 2
  32. #define LEFTHIT   4
  33. #define RIGHTHIT  8
  34.  
  35. #endif    /* GRAPHICS_COLLIDE_H */
  36.