home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / OTL-BBU1.DMS / in.adf / Includes / graphics / collide.bb2 < prev    next >
Unknown  |  1994-04-04  |  943 b 

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 00 3b 20 24 56 45 52 | 3a 20 63 6f 6c 6c 69 64 |;.; $VER|: collid|
|00000010| 65 2e 62 62 32 20 34 30 | 2e 30 20 28 30 32 2e 30 |e.bb2 40|.0 (02.0|
|00000020| 33 2e 39 34 29 00 3b 00 | 00 3b 2f 2a 20 54 68 65 |3.94).;.|.;/* The|
|00000030| 73 65 20 62 69 74 20 64 | 65 73 63 72 69 70 74 6f |se bit d|escripto|
|00000040| 72 73 20 61 72 65 20 75 | 73 65 64 20 62 79 20 74 |rs are u|sed by t|
|00000050| 68 65 20 47 45 4c 20 63 | 6f 6c 6c 69 64 65 20 72 |he GEL c|ollide r|
|00000060| 6f 75 74 69 6e 65 73 2e | 00 3b 20 2a 20 20 54 68 |outines.|.; * Th|
|00000070| 65 73 65 20 62 69 74 73 | 20 61 72 65 20 73 65 74 |ese bits| are set|
|00000080| 20 69 6e 20 74 68 65 20 | 68 69 74 4d 61 73 6b 20 | in the |hitMask |
|00000090| 61 6e 64 20 6d 65 4d 61 | 73 6b 20 76 61 72 69 61 |and meMa|sk varia|
|000000a0| 62 6c 65 73 20 6f 66 00 | 3b 20 2a 20 20 61 20 47 |bles of.|; * a G|
|000000b0| 45 4c 20 74 6f 20 64 65 | 73 63 72 69 62 65 20 77 |EL to de|scribe w|
|000000c0| 68 65 74 68 65 72 20 6f | 72 20 6e 6f 74 20 74 68 |hether o|r not th|
|000000d0| 65 73 65 20 74 79 70 65 | 73 20 6f 66 20 63 6f 6c |ese type|s of col|
|000000e0| 6c 69 73 69 6f 6e 73 00 | 3b 20 2a 20 20 63 61 6e |lisions.|; * can|
|000000f0| 20 61 66 66 65 63 74 20 | 74 68 65 20 47 45 4c 2e | affect |the GEL.|
|00000100| 20 20 42 4e 44 52 59 5f | 48 49 54 20 69 73 20 64 | BNDRY_|HIT is d|
|00000110| 65 73 63 72 69 62 65 64 | 20 66 75 72 74 68 65 72 |escribed| further|
|00000120| 20 62 65 6c 6f 77 3b 00 | 3b 20 2a 20 20 74 68 69 | below;.|; * thi|
|00000130| 73 20 62 69 74 20 69 73 | 20 70 65 72 6d 61 6e 65 |s bit is| permane|
|00000140| 6e 74 6c 79 20 61 73 73 | 69 67 6e 65 64 20 61 73 |ntly ass|igned as|
|00000150| 20 74 68 65 20 62 6f 75 | 6e 64 61 72 79 2d 68 69 | the bou|ndary-hi|
|00000160| 74 20 66 6c 61 67 2e 00 | 3b 20 2a 20 20 54 68 65 |t flag..|; * The|
|00000170| 20 6f 74 68 65 72 20 62 | 69 74 20 47 45 4c 5f 48 | other b|it GEL_H|
|00000180| 49 54 20 69 73 20 6d 65 | 61 6e 74 20 6f 6e 6c 79 |IT is me|ant only|
|00000190| 20 61 73 20 61 20 64 65 | 66 61 75 6c 74 20 74 6f | as a de|fault to|
|000001a0| 20 63 6f 76 65 72 00 3b | 20 2a 20 20 61 6e 79 20 | cover.;| * any |
|000001b0| 47 45 4c 20 68 69 74 74 | 69 6e 67 20 61 6e 79 20 |GEL hitt|ing any |
|000001c0| 6f 74 68 65 72 3b 20 74 | 68 65 20 75 73 65 72 20 |other; t|he user |
|000001d0| 6d 61 79 20 72 65 64 65 | 66 69 6e 65 20 74 68 69 |may rede|fine thi|
|000001e0| 73 20 62 69 74 2e 00 3b | 20 2a 2f 00 23 42 4f 52 |s bit..;| */.#BOR|
|000001f0| 44 45 52 48 49 54 3d 30 | 00 00 3b 2f 2a 20 54 68 |DERHIT=0|..;/* Th|
|00000200| 65 73 65 20 62 69 74 20 | 64 65 73 63 72 69 70 74 |ese bit |descript|
|00000210| 6f 72 73 20 61 72 65 20 | 75 73 65 64 20 62 79 20 |ors are |used by |
|00000220| 74 68 65 20 47 45 4c 20 | 62 6f 75 6e 64 72 79 20 |the GEL |boundry |
|00000230| 68 69 74 20 72 6f 75 74 | 69 6e 65 73 2e 00 3b 20 |hit rout|ines..; |
|00000240| 2a 20 20 57 68 65 6e 20 | 74 68 65 20 75 73 65 72 |* When |the user|
|00000250| 27 73 20 62 6f 75 6e 64 | 72 79 2d 68 69 74 20 72 |'s bound|ry-hit r|
|00000260| 6f 75 74 69 6e 65 20 69 | 73 20 63 61 6c 6c 65 64 |outine i|s called|
|00000270| 20 28 76 69 61 20 74 68 | 65 20 61 72 67 75 6d 65 | (via th|e argume|
|00000280| 6e 74 00 3b 20 2a 20 20 | 73 65 74 20 62 79 20 61 |nt.; * |set by a|
|00000290| 20 63 61 6c 6c 20 74 6f | 20 53 65 74 43 6f 6c 6c | call to| SetColl|
|000002a0| 69 73 69 6f 6e 29 20 74 | 68 65 20 66 69 72 73 74 |ision) t|he first|
|000002b0| 20 61 72 67 75 6d 65 6e | 74 20 70 61 73 73 65 64 | argumen|t passed|
|000002c0| 20 74 6f 00 3b 20 2a 20 | 20 74 68 65 20 75 73 65 | to.; * | the use|
|000002d0| 72 27 73 20 72 6f 75 74 | 69 6e 65 20 69 73 20 74 |r's rout|ine is t|
|000002e0| 68 65 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |he addre|ss of th|
|000002f0| 65 20 47 45 4c 20 69 6e | 76 6f 6c 76 65 64 20 69 |e GEL in|volved i|
|00000300| 6e 20 74 68 65 00 3b 20 | 2a 20 20 62 6f 75 6e 64 |n the.; |* bound|
|00000310| 72 79 2d 68 69 74 2c 20 | 61 6e 64 20 74 68 65 20 |ry-hit, |and the |
|00000320| 73 65 63 6f 6e 64 20 61 | 72 67 75 6d 65 6e 74 20 |second a|rgument |
|00000330| 68 61 73 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 |has the |appropri|
|00000340| 61 74 65 20 62 69 74 28 | 73 29 00 3b 20 2a 20 20 |ate bit(|s).; * |
|00000350| 73 65 74 20 74 6f 20 64 | 65 73 63 72 69 62 65 20 |set to d|escribe |
|00000360| 77 68 69 63 68 20 62 6f | 75 6e 64 72 79 20 77 61 |which bo|undry wa|
|00000370| 73 20 73 75 72 70 61 73 | 73 65 64 00 3b 20 2a 2f |s surpas|sed.; */|
|00000380| 00 23 54 4f 50 48 49 54 | 3d 31 00 23 42 4f 54 54 |.#TOPHIT|=1.#BOTT|
|00000390| 4f 4d 48 49 54 3d 32 00 | 23 4c 45 46 54 48 49 54 |OMHIT=2.|#LEFTHIT|
|000003a0| 3d 34 00 23 52 49 47 48 | 54 48 49 54 3d 38 00 |=4.#RIGH|THIT=8. |
+--------+-------------------------+-------------------------+--------+--------+