dxx-rebirth/common/main/automap.h

72 lines
2.1 KiB
C
Raw Normal View History

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"
#ifdef __cplusplus
2013-12-28 18:56:34 +00:00
#include <cstddef>
#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"
inline namespace dcx {
extern int Automap_active;
}
#if defined(DXX_BUILD_DESCENT_I) || defined(DXX_BUILD_DESCENT_II)
inline 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();
}
#endif
inline namespace dcx {
2013-12-15 17:01:40 +00:00
extern array<ubyte, MAX_SEGMENTS> Automap_visited;
}
#if defined(DXX_BUILD_DESCENT_II)
#include "fwd-object.h"
2014-12-22 04:35:48 +00:00
#include "ntstring.h"
#include "fwd-window.h"
inline 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;
extern array<objnum_t, NUM_MARKERS> MarkerObject;
2012-11-11 00:14:30 +00:00
extern ubyte DefiningMarkerMessage;
}
#endif
2006-03-20 17:12:09 +00:00
#endif