| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/main/lib/findintersection_external.h $ |
| 21 | * $Revision: 6 $ |
| 22 | * $Date: 4/18/99 5:42a $ |
| 23 | * $Author: Chris $ |
| 24 | * |
| 25 | * Description goes here |
| 26 | * |
| 27 | * $Log: /DescentIII/main/lib/findintersection_external.h $ |
| 28 | * |
| 29 | * 6 4/18/99 5:42a Chris |
| 30 | * Added the FQ_IGNORE_RENDER_THROUGH_PORTALS flag |
| 31 | * |
| 32 | * 5 4/05/99 3:58p Chris |
| 33 | * Made the FQ_ flags easier to read |
| 34 | * |
| 35 | * 4 3/27/99 3:25p Chris |
| 36 | * Added comment headers |
| 37 | * |
| 38 | * $NoKeywords: $ |
| 39 | */ |
| 40 | |
| 41 | #ifndef FINDINTERSECTION_EXTERNAL_H_ |
| 42 | #define FINDINTERSECTION_EXTERNAL_H_ |
| 43 | |
| 44 | // return values for find_vector_intersection() |
| 45 | #define HIT_NONE 0 // we hit nothing |
| 46 | #define HIT_WALL 1 // we hit a wall |
| 47 | #define HIT_OBJECT 2 // we hit an object |
| 48 | #define HIT_TERRAIN 3 // we hit the terrain |
| 49 | #define HIT_BAD_P0 4 // start point not is specified segment |
| 50 | #define HIT_OUT_OF_TERRAIN_BOUNDS 5 // End point is outside of the terrain |
| 51 | #define HIT_BACKFACE 6 // We hit the backface of a wall... |
| 52 | #define HIT_SPHERE_2_POLY_OBJECT 7 // Hit a sphere to a real polygon |
| 53 | #define HIT_CEILING 8 // Object hit the ceiling |
| 54 | #define HIT_CORNER_WALL 9 |
| 55 | #define HIT_EDGE_WALL 10 |
| 56 | #define HIT_FACE_WALL 11 |
| 57 | |
| 58 | // flags for fvi query |
| 59 | #define FQ_CHECK_OBJS 1 // check against objects? |
| 60 | #define FQ_OBJ_BACKFACE (1 << 1) // Hit the backfaces of polyobjs |
| 61 | #define FQ_TRANSPOINT (1 << 2) // go through trans wall if hit point is transparent |
| 62 | #define FQ_IGNORE_POWERUPS (1 << 3) // ignore powerups |
| 63 | #define FQ_BACKFACE (1 << 4) // Check for collisions with backfaces, usually they are ignored |
| 64 | #define FQ_SOLID_PORTALS (1 << 5) // Makes connectivity disappear for FVI |
| 65 | #define FQ_RECORD (1 << 6) // Records faces that should be recorded |
| 66 | #define FQ_NEW_RECORD_LIST (1 << 7) // Records faces that should be recorded |
| 67 | #define FQ_IGNORE_MOVING_OBJECTS (1 << 8) // Ignores all objects that move |
| 68 | #define FQ_IGNORE_NON_LIGHTMAP_OBJECTS (1 << 9) // Ignores all objects that are not associated with lightmaps |
| 69 | #define FQ_ONLY_PLAYER_OBJ (1 << 10) // Ignores all objects besides the player |
| 70 | #define FQ_IGNORE_WALLS (1 << 11) // Ignores all walls (it will still hit OBJ_ROOMS) |
| 71 | #define FQ_CHECK_CEILING (1 << 12) // Checks if object hits the imaginary ceiling |
| 72 | #define FQ_ONLY_DOOR_OBJ (1 << 13) // Ignores all objects, except doors |
| 73 | #define FQ_NO_RELINK (1 << 14) // Does not determine the hitseg |
| 74 | #define FQ_EXTERNAL_ROOMS_AS_SPHERE (1 << 15) // Hmmm.... |
| 75 | #define FQ_MULTI_POINT (1 << 16) // Enable Multi-point collision |
| 76 | #define FQ_LIGHTING (1 << 17) // Lighting only optimizations |
| 77 | #define FQ_COMPUTE_MOVEMENT_TIME (1 << 18) |
| 78 | #define FQ_IGNORE_EXTERNAL_ROOMS (1 << 19) |
| 79 | #define FQ_IGNORE_WEAPONS (1 << 20) |
| 80 | #define FQ_IGNORE_TERRAIN (1 << 21) |
| 81 | #define FQ_PLAYERS_AS_SPHERE (1 << 22) |
| 82 | #define FQ_ROBOTS_AS_SPHERE (1 << 23) |
| 83 | #define FQ_IGNORE_CLUTTER_COLLISIONS (1 << 24) |
| 84 | #define FQ_IGNORE_RENDER_THROUGH_PORTALS (1 << 25) |
| 85 | |
| 86 | #endif |