| 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/selectedroom.h $ |
| 21 | * $Revision: 1.1.1.1 $ |
| 22 | * $Date: 2003-08-26 03:57:39 $ |
| 23 | * $Author: kevinb $ |
| 24 | * |
| 25 | * Header for selected.cpp |
| 26 | * |
| 27 | * $Log: not supported by cvs2svn $ |
| 28 | * |
| 29 | * 2 7/31/97 3:31p Jason |
| 30 | * added functions to rotate portal rooms |
| 31 | * |
| 32 | * 1 7/31/97 1:05p Jason |
| 33 | * |
| 34 | * $NoKeywords: $ |
| 35 | */ |
| 36 | |
| 37 | // Returns true if a room is in the selected list |
| 38 | int IsRoomSelected(int roomnum); |
| 39 | |
| 40 | // Adds a room to the selected list, if it's not already there |
| 41 | void AddRoomToSelectedList(int roomnum); |
| 42 | |
| 43 | // Removes a room from the selected list, if it's there |
| 44 | void RemoveRoomFromSelectedList(int roomnum); |
| 45 | |
| 46 | // Empties the selected list |
| 47 | void ClearRoomSelectedList(); |
| 48 | |
| 49 | // Adds to selected list if not already in there, else removes from list |
| 50 | // Returns: 1 if room was selected, 0 if un-selected |
| 51 | int ToggleRoomSelectedState(int roomnum); |
| 52 | |
| 53 | // Add all the connected room to the selected list |
| 54 | // Parameters: roomnum - the starting room |
| 55 | // Returns: the number of rooms added to the list |
| 56 | int SelectConnectedRooms(int roomnum); |
| 57 | |
| 58 | // Save the (user's) selected list so that an internal function can use it |
| 59 | // You must call RestoreSelectedList() when you're done with the selected list |
| 60 | void SaveRoomSelectedList(); |
| 61 | |
| 62 | // Restore a previously-saved selected list. You must have previously called SaveSelectedList() |
| 63 | void RestoreRoomSelectedList(); |