home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / demos / skyscrap / build / plane.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-13  |  319 b   |  16 lines

  1. #include "plane.h"
  2.  
  3. boolean Plane::HorizontalProximityCheck( rect me, rect stealth )
  4. {
  5.   // check to make sure stealth is not above me
  6.   if ( stealth.t>me.b )
  7.   {
  8.     if ( me.l<=stealth.l )
  9.      return ( stealth.l<=me.r ) ? YES:NO;
  10.     else
  11.       return ( stealth.r>=me.l ) ? YES:NO;
  12.   }
  13.   return NO;
  14. }
  15.  
  16.