]> git.mxchange.org Git - flightgear.git/blob - src/NetworkOLK/network.h
Tweaks to sound levels from Erik Hofman.
[flightgear.git] / src / NetworkOLK / network.h
1 // network.h -- public data structures for managing network.
2 //
3 // Written by Oliver Delise, started May 1999.
4 //
5 // Copyleft (C) 1999  Oliver Delise - delise@mail.isis.de
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 // $Id$
22
23 #ifndef NETWORK_OLK_H
24 #define NETWORK_OLK_H
25
26 #define FGD
27
28 #include <plib/ssg.h>
29
30 extern char *net_callsign;
31 extern int  net_hud_display;
32 extern int  net_blast_toggle;
33 extern int  net_is_registered;
34 extern int  net_r, current_port;
35 extern u_short base_port, end_port;
36 extern char *fg_net_init( ssgRoot *orig_scene );
37 extern char *FGFS_host, *fgd_mcp_ip, *fgd_name;
38
39 extern void net_hud_update( void );
40 extern int  net_resolv_fgd( char *);
41
42 #include "fgd.h"
43
44 extern sgMat4 sgFGD_VIEW;
45
46 struct list_ele {
47    /* unsigned */ char ipadr[16], callsign[16];
48    /* unsigned */ char lon[8], lat[8], alt[8], roll[8], pitch[8], yaw[8];
49    float lonf, latf, altf, speedf, rollf, pitchf, yawf;
50    sgMat4 sgFGD_COORD;
51    ssgSelector  *fgd_sel;
52    ssgTransform * fgd_pos;   
53    struct list_ele *next, *prev;
54 };
55
56 extern struct list_ele *head, *tail, *other;
57
58 extern void fgd_send_com( char *FGD_com, char *FGFS_host);
59 extern void list_init( void );
60 extern void fgd_init( void);
61 #endif