home *** CD-ROM | disk | FTP | other *** search
- #include "plane.h"
-
- boolean Plane::HorizontalProximityCheck( rect me, rect stealth )
- {
- // check to make sure stealth is not above me
- if ( stealth.t>me.b )
- {
- if ( me.l<=stealth.l )
- return ( stealth.l<=me.r ) ? YES:NO;
- else
- return ( stealth.r>=me.l ) ? YES:NO;
- }
- return NO;
- }
-
-