Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>check_olap()</b> c_demo http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CHECK_OLAP()                                                        C_DEMO
   Checks for overlapping objects.

   Syntax
         nObject2 = CHECK_OLAP(nType,nObject1)
                  or
         nCnt = CHECK_OLAP(nType,aObjects)

   Arguments
         nType       Checks drawing for overlapping objects.
                     0 - check nObject but exclude its combined objects
                     1 - check nObject plus all objects combined to nObject
         nObject1    Object number to check.
            or
         aObjects    Array to hold overlapping object numbers.

   Returns
         nObject2    The object number that nObject1 overlaps.
            or
         nCnt        The number of objects returned in the array that are
                     overlapped.

   Description
         CHECK_OLAP() checks to see if two objects in a drawing are directly
         overlapping each other. The objects must be of the same type and
         their hot boxes must have the same values. There are two flavors of
         this function because when there are a large number of items on the
         screen it can take several minutes to check all the objects. Passing
         the object number you wish to check is much faster than checking
         every object against every other object.

See Also: OBJ_COPY() OBJ_MOVE() OBJ_MOVPNT() OBJ_SNAP() OBJ_SNAPNT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson