| 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 | |
| 19 | #ifndef AIPATH_H_ |
| 20 | #define AIPATH_H_cxx . . $ `Descent3/aipath.h:20:9`! |
| 21 | |
| 22 | #include "object.h"cxx . . $ `<file>/Descent3/object.h`/ |
| 23 | #include "pstypes.h"cxx . . $ `<file>/lib/pstypes.h`/ |
| 24 | #include "aistruct.h"cxx . . $ `<file>/Descent3/aistruct.h`/ |
| 25 | |
| 26 | // Exported functions |
| 27 | extern void AIPathMoveTurnTowardsNodecxx . . $ AIPathMoveTurnTowardsNode(682dd4424bca0090).(objectcxx . . $ object# *obj, vectorcxx . . $ vector# *mdir, bool *f_moved); |
| 28 | // void AIPathMoveTowardsRoom(object *obj, int room_index); |
| 29 | extern bool AIPathSetAsStaticPathcxx . . $ AIPathSetAsStaticPath(adaaf699fc2cec17).(objectcxx . . $ object# *obj, void *goal_ptr, int path_id, int start_node, int end_node, int cur_node); |
| 30 | extern bool AIPathAllocPathcxx . . $ AIPathAllocPath(896bfa3f698eea41).(objectcxx . . $ object# *obj, ai_framecxx . . $ ai_frame# *ai_info, void *goal_ptr, int *start_room, vectorcxx . . $ vector# *start_pos, |
| 31 | int *end_room, vectorcxx . . $ vector# *end_pos, float rad, int flags, int handle, int ignore_obj = -1); |
| 32 | extern bool AIPathInitPathcxx . . $ AIPathInitPath(211cadd9cc3984f1).(ai_path_infocxx . . $ ai_path_info# *aip); |
| 33 | extern bool AIPathFreePathcxx . . $ AIPathFreePath(211cadd9cc3984f1).(ai_path_infocxx . . $ ai_path_info# *aip); |
| 34 | extern bool AIFindAltPathcxx . . $ AIFindAltPath(4c063a45e14c3cfe).(objectcxx . . $ object# *obj, int i, int j, float *dist = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 35 | |
| 36 | extern bool AIPathAtEndcxx . . $ AIPathAtEnd(211cadd9cc3984f1).(ai_path_infocxx . . $ ai_path_info# *aip); |
| 37 | extern bool AIPathAtStartcxx . . $ AIPathAtStart(211cadd9cc3984f1).(ai_path_infocxx . . $ ai_path_info# *aip); |
| 38 | extern bool AIPathGetNextNodePoscxx . . $ AIPathGetNextNodePos(ea4bd046b9d29bc1).(ai_path_infocxx . . $ ai_path_info# *aip, vectorcxx . . $ vector# *pos, int *room = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 39 | extern bool AIPathGetPrevNodePoscxx . . $ AIPathGetPrevNodePos(ea4bd046b9d29bc1).(ai_path_infocxx . . $ ai_path_info# *aip, vectorcxx . . $ vector# *pos, int *room = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 40 | extern bool AIPathGetCurrentNodePoscxx . . $ AIPathGetCurrentNodePos(ea4bd046b9d29bc1).(ai_path_infocxx . . $ ai_path_info# *aip, vectorcxx . . $ vector# *pos, int *room = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 41 | |
| 42 | #ifdef _DEBUGcxx . . $ `<built-in>:482:9`! |
| 43 | extern bool MakeTestPathcxx . . $ MakeTestPath(26b728a3f807ec4f).(int *start_room, vectorcxx . . $ vector# *pos); |
| 44 | |
| 45 | extern int AIPath_test_end_roomcxx . . $ AIPath_test_end_room.; |
| 46 | extern vectorcxx . . $ vector# AIPath_test_end_poscxx . . $ AIPath_test_end_pos.; |
| 47 | #endif |
| 48 | |
| 49 | #endif |