2006-03-20 17:12:09 +00:00
|
|
|
/*
|
2014-06-01 17:55:23 +00:00
|
|
|
* Portions of this file are copyright Rebirth contributors and licensed as
|
|
|
|
* described in COPYING.txt.
|
|
|
|
* Portions of this file are copyright Parallax Software and licensed
|
|
|
|
* according to the Parallax license below.
|
|
|
|
* See COPYING.txt for license details.
|
|
|
|
|
2006-03-20 17:12:09 +00:00
|
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Prototypes for auto-map stuff.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-01-29 04:27:36 +00:00
|
|
|
#pragma once
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2013-10-26 03:40:50 +00:00
|
|
|
#include "pstypes.h"
|
|
|
|
|
2013-12-28 18:56:34 +00:00
|
|
|
#include <cstddef>
|
2015-10-10 03:44:14 +00:00
|
|
|
#include "fwd-segment.h"
|
2013-12-15 17:01:40 +00:00
|
|
|
#include "dxxsconf.h"
|
2016-03-19 19:08:10 +00:00
|
|
|
#include "dsx-ns.h"
|
2020-05-02 21:18:42 +00:00
|
|
|
#include <array>
|
2012-11-11 22:12:51 +00:00
|
|
|
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dcx {
|
2010-01-29 03:36:44 +00:00
|
|
|
extern int Automap_active;
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
2016-01-09 16:38:15 +00:00
|
|
|
#ifdef dsx
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dsx {
|
2014-07-16 02:35:14 +00:00
|
|
|
void do_automap();
|
2020-08-28 00:18:45 +00:00
|
|
|
void automap_clear_visited(d_level_unique_automap_state &LevelUniqueAutomapState);
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
2013-03-03 01:03:33 +00:00
|
|
|
|
|
|
|
#if defined(DXX_BUILD_DESCENT_II)
|
2018-09-09 01:00:39 +00:00
|
|
|
#include "object.h"
|
2014-12-22 04:35:48 +00:00
|
|
|
#include "ntstring.h"
|
2020-07-22 03:11:18 +00:00
|
|
|
#include "d_array.h"
|
|
|
|
#include "d_range.h"
|
2021-02-05 12:54:08 +00:00
|
|
|
#include "fwd-event.h"
|
2022-02-12 18:57:12 +00:00
|
|
|
#include "fwd-game.h"
|
2018-06-06 04:53:45 +00:00
|
|
|
#include "segment.h"
|
2013-12-29 04:28:07 +00:00
|
|
|
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dsx {
|
2019-12-22 05:34:08 +00:00
|
|
|
void DropBuddyMarker(object &objp);
|
2012-11-11 00:14:30 +00:00
|
|
|
void InitMarkerInput();
|
2020-10-12 03:28:26 +00:00
|
|
|
window_event_result MarkerInputMessage(int key, control_info &Controls);
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2017-10-14 17:10:30 +00:00
|
|
|
constexpr std::integral_constant<std::size_t, 16> NUM_MARKERS{};
|
|
|
|
constexpr std::integral_constant<std::size_t, 40> MARKER_MESSAGE_LEN{};
|
2018-03-24 21:33:29 +00:00
|
|
|
struct marker_message_text_t : ntstring<MARKER_MESSAGE_LEN - 1>
|
|
|
|
{
|
|
|
|
constexpr marker_message_text_t() :
|
|
|
|
ntstring()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
2018-03-10 18:32:02 +00:00
|
|
|
|
|
|
|
struct d_marker_object_numbers
|
|
|
|
{
|
2020-07-22 03:11:18 +00:00
|
|
|
enumerated_array<imobjidx_t, NUM_MARKERS, game_marker_index> imobjidx = {init_object_number_array<imobjidx_t>(std::make_index_sequence<NUM_MARKERS>())};
|
2018-03-10 18:32:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct d_marker_state : d_marker_object_numbers
|
2018-03-10 18:32:02 +00:00
|
|
|
{
|
2020-07-22 03:11:18 +00:00
|
|
|
player_marker_index MarkerBeingDefined = player_marker_index::None;
|
|
|
|
game_marker_index HighlightMarker = game_marker_index::None;
|
|
|
|
player_marker_index LastMarkerDropped = player_marker_index::None;
|
|
|
|
enumerated_array<marker_message_text_t, NUM_MARKERS, game_marker_index> message;
|
2018-03-24 21:33:29 +00:00
|
|
|
bool DefiningMarkerMessage() const
|
2018-03-10 22:45:04 +00:00
|
|
|
{
|
2020-07-22 03:11:18 +00:00
|
|
|
return MarkerBeingDefined != player_marker_index::None;
|
2018-03-10 22:45:04 +00:00
|
|
|
}
|
2021-09-12 16:20:52 +00:00
|
|
|
static unsigned get_markers_per_player(game_mode_flags game_mode, unsigned netgame_max_players);
|
2018-03-10 18:32:02 +00:00
|
|
|
};
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2021-09-12 16:20:52 +00:00
|
|
|
game_marker_index convert_player_marker_index_to_game_marker_index(game_mode_flags game_mode, unsigned max_numplayers, unsigned player_num, player_marker_index base_marker_num);
|
2020-07-22 03:11:18 +00:00
|
|
|
xrange<player_marker_index> get_player_marker_range(unsigned maxdrop);
|
2013-12-28 18:56:34 +00:00
|
|
|
extern marker_message_text_t Marker_input;
|
2018-03-10 18:32:02 +00:00
|
|
|
extern d_marker_state MarkerState;
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
2013-03-03 01:03:33 +00:00
|
|
|
#endif
|
2012-11-11 22:12:51 +00:00
|
|
|
#endif
|