2024-04-20 16:23:08 +00:00
|
|
|
/*
|
2024-06-15 18:12:48 +00:00
|
|
|
* Descent 3
|
2024-04-20 16:23:08 +00:00
|
|
|
* Copyright (C) 2024 Parallax Software
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2024-05-06 15:12:44 +00:00
|
|
|
--- HISTORICAL COMMENTS FOLLOW ---
|
|
|
|
|
2024-04-19 20:58:24 +00:00
|
|
|
* $Logfile: /DescentIII/Main/editor/selectedroom.h $
|
|
|
|
* $Revision: 1.1.1.1 $
|
|
|
|
* $Date: 2003-08-26 03:57:39 $
|
|
|
|
* $Author: kevinb $
|
|
|
|
*
|
|
|
|
* Header for selected.cpp
|
|
|
|
*
|
|
|
|
* $Log: not supported by cvs2svn $
|
2024-06-15 18:12:48 +00:00
|
|
|
*
|
2024-04-19 20:58:24 +00:00
|
|
|
* 2 7/31/97 3:31p Jason
|
|
|
|
* added functions to rotate portal rooms
|
2024-06-15 18:12:48 +00:00
|
|
|
*
|
2024-04-19 20:58:24 +00:00
|
|
|
* 1 7/31/97 1:05p Jason
|
2024-06-15 18:12:48 +00:00
|
|
|
*
|
2024-04-19 20:58:24 +00:00
|
|
|
* $NoKeywords: $
|
|
|
|
*/
|
|
|
|
|
2024-06-15 18:12:48 +00:00
|
|
|
// Returns true if a room is in the selected list
|
2024-04-19 20:58:24 +00:00
|
|
|
int IsRoomSelected(int roomnum);
|
|
|
|
|
2024-06-15 18:12:48 +00:00
|
|
|
// Adds a room to the selected list, if it's not already there
|
2024-04-19 20:58:24 +00:00
|
|
|
void AddRoomToSelectedList(int roomnum);
|
|
|
|
|
2024-06-15 18:12:48 +00:00
|
|
|
// Removes a room from the selected list, if it's there
|
2024-04-19 20:58:24 +00:00
|
|
|
void RemoveRoomFromSelectedList(int roomnum);
|
|
|
|
|
2024-06-15 18:12:48 +00:00
|
|
|
// Empties the selected list
|
2024-04-19 20:58:24 +00:00
|
|
|
void ClearRoomSelectedList();
|
|
|
|
|
2024-06-15 18:12:48 +00:00
|
|
|
// Adds to selected list if not already in there, else removes from list
|
|
|
|
// Returns: 1 if room was selected, 0 if un-selected
|
2024-04-19 20:58:24 +00:00
|
|
|
int ToggleRoomSelectedState(int roomnum);
|
|
|
|
|
2024-06-15 18:12:48 +00:00
|
|
|
// Add all the connected room to the selected list
|
|
|
|
// Parameters: roomnum - the starting room
|
|
|
|
// Returns: the number of rooms added to the list
|
2024-04-19 20:58:24 +00:00
|
|
|
int SelectConnectedRooms(int roomnum);
|
|
|
|
|
2024-06-15 18:12:48 +00:00
|
|
|
// Save the (user's) selected list so that an internal function can use it
|
|
|
|
// You must call RestoreSelectedList() when you're done with the selected list
|
2024-04-19 20:58:24 +00:00
|
|
|
void SaveRoomSelectedList();
|
|
|
|
|
2024-06-15 18:12:48 +00:00
|
|
|
// Restore a previously-saved selected list. You must have previously called SaveSelectedList()
|
2024-04-19 20:58:24 +00:00
|
|
|
void RestoreRoomSelectedList();
|