dxx-rebirth/common/main/automap.h

67 lines
2 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.
*
*/
#ifndef _AUTOMAP_H
#define _AUTOMAP_H
2013-10-26 03:40:50 +00:00
#include "pstypes.h"
#include "segment.h"
#ifdef __cplusplus
2013-12-28 18:56:34 +00:00
#include <cstddef>
2013-12-15 17:01:40 +00:00
#include "dxxsconf.h"
2013-12-21 05:12:38 +00:00
#include "compiler-array.h"
extern int Automap_active;
2014-07-16 02:35:14 +00:00
void do_automap();
2006-03-20 17:12:09 +00:00
extern void automap_clear_visited();
2013-12-15 17:01:40 +00:00
extern array<ubyte, MAX_SEGMENTS> Automap_visited;
#if defined(DXX_BUILD_DESCENT_II)
#include "objnum.h"
2013-10-26 03:40:50 +00:00
struct object;
struct vms_vector;
2006-03-20 17:12:09 +00:00
void DropBuddyMarker(object *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;
struct marker_message_text_t : public array<char, MARKER_MESSAGE_LEN> {};
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
2006-03-20 17:12:09 +00:00
#endif