| 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/editor/HFile.h $ |
| 21 | * $Revision: 1.1.1.1 $ |
| 22 | * $Date: 2003-08-26 03:57:38 $ |
| 23 | * $Author: kevinb $ |
| 24 | * |
| 25 | * Header for HFile.cpp |
| 26 | * |
| 27 | * $Log: not supported by cvs2svn $ |
| 28 | * |
| 29 | * 6 3/22/99 6:26p Matt |
| 30 | * Cleaned up error handling in cfile and editor level loads. |
| 31 | * |
| 32 | * 5 4/21/98 2:40p Matt |
| 33 | * Added option to show level stats |
| 34 | * |
| 35 | * 4 9/17/97 11:21a Matt |
| 36 | * Ripped out segment code |
| 37 | * |
| 38 | * 6 4/01/97 11:00p Matt |
| 39 | * Changed editor to keep a viewer object (type camera) seperate from the |
| 40 | * player object. This camera, and not the player, is now moved by |
| 41 | * slewing, the C key, etc. When going into the game, the viewer position |
| 42 | * & orientation are copied to the player. When going back to the editor, |
| 43 | * the player position is copied to the viewer, and the player object is |
| 44 | * reset to its start location. |
| 45 | * |
| 46 | * 5 3/04/97 7:13p Samir |
| 47 | * Added prototype to move player object to segment, side. This should |
| 48 | * probably be moved to another file. |
| 49 | * |
| 50 | * 4 2/20/97 9:56a Matt |
| 51 | * Moved some general-purpose segment code from HFile.cpp to ESegments.cpp |
| 52 | * |
| 53 | * 3 2/11/97 6:44p Matt |
| 54 | * Reset player when do a new level |
| 55 | * Added new function: ResetFreeSegList() |
| 56 | * |
| 57 | * 2 2/10/97 5:40p Matt |
| 58 | * Code to handle several File menu options |
| 59 | * |
| 60 | * 1 2/10/97 11:21a Matt |
| 61 | * |
| 62 | * $NoKeywords: $ |
| 63 | */ |
| 64 | |
| 65 | #include "d3edit.h" |
| 66 | |
| 67 | // Create a new mine with one segment |
| 68 | void CreateNewMine(); |
| 69 | |
| 70 | // Load a new level |
| 71 | bool EditorLoadLevel(char *filename); |
| 72 | |
| 73 | // Save the current level |
| 74 | // Returns 1 if level saved sucessfully |
| 75 | int EditorSaveLevel(char *filename); |
| 76 | |
| 77 | // Shows the stats for a level in a messagebox, and copies to the clipboard |
| 78 | void ShowLevelStats(); |