| 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/soar.h $ |
| 21 | * $Revision: 4 $ |
| 22 | * $Date: 4/16/99 12:33a $ |
| 23 | * $Author: Matt $ |
| 24 | * |
| 25 | * Header for Soar DLL functions |
| 26 | * |
| 27 | * $Log: /DescentIII/Main/soar.h $ |
| 28 | * |
| 29 | * 4 4/16/99 12:33a Matt |
| 30 | * Disable Soar on non-Windows systems. |
| 31 | * |
| 32 | */ |
| 33 | |
| 34 | #ifndef SOAR_H_ |
| 35 | #define SOAR_H_ |
| 36 | |
| 37 | // #ifdef _WIN32 |
| 38 | // #define SOAR_ENABLED |
| 39 | // #endif |
| 40 | |
| 41 | #ifdef SOAR_ENABLED |
| 42 | |
| 43 | extern bool Soar_active; |
| 44 | |
| 45 | extern __declspec(dllexport) int SoarInit(void *TerrainList, int terrain_size, void *RoomList, int room_size, |
| 46 | void *ObjectList, int object_size, void *FunctionList); |
| 47 | extern __declspec(dllexport) int SoarTick(float FrameTime); |
| 48 | extern __declspec(dllexport) int SoarCreateAgent(int Objnum, int Flags); |
| 49 | extern __declspec(dllexport) int SoarClearAgent(int Objnum, int Flags); |
| 50 | extern __declspec(dllexport) int SoarDestroyAgent(int Objnum, int Flags); |
| 51 | extern __declspec(dllexport) int SoarEnd(void); |
| 52 | |
| 53 | #else |
| 54 | |
| 55 | #define Soar_active false |
| 56 | |
| 57 | // I've defined all of these to not return values, even though the functions they |
| 58 | // replay return ints, because no one actually looks at the return values |
| 59 | |
| 60 | #define SoarInit(TerrainList, terrain_size, RoomList, room_size, ObjectList, object_size, FunctionList) \ |
| 61 | do { \ |
| 62 | } while (0) |
| 63 | #define SoarTick(FrameTime) \ |
| 64 | do { \ |
| 65 | } while (0) |
| 66 | #define SoarCreateAgent(Objnum, Flags) \ |
| 67 | do { \ |
| 68 | } while (0) |
| 69 | #define SoarClearAgent(Objnum, Flags) \ |
| 70 | do { \ |
| 71 | } while (0) |
| 72 | #define SoarDestroyAgent(Objnum, Flags) \ |
| 73 | do { \ |
| 74 | } while (0) |
| 75 | #define SoarEnd() \ |
| 76 | do { \ |
| 77 | } while (0) |
| 78 | |
| 79 | #endif |
| 80 | |
| 81 | #endif |