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"
|
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#ifdef __cplusplus
|
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"
|
2013-12-21 05:12:38 +00:00
|
|
|
#include "compiler-array.h"
|
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
|
|
|
}
|
|
|
|
#if defined(DXX_BUILD_DESCENT_I) || defined(DXX_BUILD_DESCENT_II)
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dsx {
|
2014-07-16 02:35:14 +00:00
|
|
|
void do_automap();
|
2006-03-20 17:12:09 +00:00
|
|
|
extern void automap_clear_visited();
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
|
|
|
#endif
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dcx {
|
2013-12-15 17:01:40 +00:00
|
|
|
extern array<ubyte, MAX_SEGMENTS> Automap_visited;
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
2013-03-03 01:03:33 +00:00
|
|
|
|
|
|
|
#if defined(DXX_BUILD_DESCENT_II)
|
2015-10-10 03:44:14 +00:00
|
|
|
#include "fwd-object.h"
|
2014-12-22 04:35:48 +00:00
|
|
|
#include "ntstring.h"
|
2015-10-09 02:46:10 +00:00
|
|
|
#include "fwd-window.h"
|
2013-12-29 04:28:07 +00:00
|
|
|
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dsx {
|
2014-10-02 03:02:34 +00:00
|
|
|
void DropBuddyMarker(vobjptr_t objp);
|
2012-11-11 00:14:30 +00:00
|
|
|
void InitMarkerInput();
|
2014-08-06 02:10:49 +00:00
|
|
|
window_event_result MarkerInputMessage(int key);
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2013-12-28 18:56:34 +00:00
|
|
|
static const std::size_t NUM_MARKERS = 16;
|
|
|
|
static const std::size_t MARKER_MESSAGE_LEN = 40;
|
2014-12-22 04:35:48 +00:00
|
|
|
struct marker_message_text_t : ntstring<MARKER_MESSAGE_LEN - 1> {};
|
2013-12-28 18:56:34 +00:00
|
|
|
struct marker_messages_array_t : public array<marker_message_text_t, NUM_MARKERS> {};
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2013-12-28 18:56:34 +00:00
|
|
|
extern marker_message_text_t Marker_input;
|
|
|
|
extern marker_messages_array_t MarkerMessage;
|
2013-12-29 04:28:07 +00:00
|
|
|
extern array<objnum_t, NUM_MARKERS> MarkerObject;
|
2012-11-11 00:14:30 +00:00
|
|
|
extern ubyte DefiningMarkerMessage;
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
2013-03-03 01:03:33 +00:00
|
|
|
#endif
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#endif
|