/*
 *  acm : an aerial combat simulator for X
 *  Copyright (C) 1991-1998  Riley Rainey
 *
 *  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; version 2 dated June, 1991.
 *
 *  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, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave., Cambridge, MA 02139, USA.
 */

/**
 * DIS entities browser and entity take over.
 * 
 * FIXME: this modules does not work anymore, mostly trying to implement an
 * experimental DIS feature, unfinished yet (U.S.).
 * 
 * @author Riley Rainey
 * @license GNU GPL
 * @version $Date: 2020/01/08 06:00:49 $
 * @file
 */

#ifndef _browse_h
#define _browse_h

#include "../dis/dis/dis.h"
#include "pm.h"

#ifdef browse_IMPORT
	#define EXTERN
#else
	#define EXTERN extern
#endif

/**
 *  This callback is invoked by the DIS code when we receive a grant
 *  control PDU that we've been waiting for.
 */
EXTERN int browse_controlRequestCallback( dis_pdu *pdu, void *pu );

//EXTERN int browse_keyEvent(craft * c, viewer * u, XEvent * ev, int player);
//EXTERN void browse_page(craft * c, viewer * u);

/**
 * Switch attention to the designated aircraft.
 */
EXTERN int browse_stealthCraft(craft *c, viewer *u, int item, int take_control);

EXTERN void browse_selectCockpitItem( craft *c, viewer *u, int x, int y, unsigned long time);

#undef EXTERN
#endif
