]> git.mxchange.org Git - flightgear.git/commitdiff
Moved Oliver's multi-pilot network code to NetworkOLK/
authorcurt <curt>
Wed, 12 Jan 2000 17:30:20 +0000 (17:30 +0000)
committercurt <curt>
Wed, 12 Jan 2000 17:30:20 +0000 (17:30 +0000)
src/Network/FILES [deleted file]
src/Network/Makefile.am
src/Network/README [deleted file]
src/Network/net_hud.cxx [deleted file]
src/Network/network.cxx [deleted file]
src/Network/network.h [deleted file]

diff --git a/src/Network/FILES b/src/Network/FILES
deleted file mode 100644 (file)
index 4b08245..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-FILES        - This file, describing the other files
-README       - containing Network info
-Makefile.am  -  
-net_hud.cxx  - display found player's info in bottom/left part of HUD
-network.cxx  - initialization of netcode and vars
-network.h    - declaration of used vars and functions for libnetwork.a
-               should be included from other files using libnetwork
-Tools        - directory containing network tools and toys
index f08134a39ee465813a9c34019aecd1adb32b4be3..828924d3ee3d2517f091b1ffff3328268d68b3cd 100644 (file)
@@ -10,7 +10,6 @@ libNetwork_a_SOURCES = \
        garmin.cxx garmin.hxx \
        nmea.cxx nmea.hxx \
        pve.cxx pve.hxx \
-       rul.cxx rul.hxx \
-       net_hud.cxx network.cxx network.h
+       rul.cxx rul.hxx
 
 INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
diff --git a/src/Network/README b/src/Network/README
deleted file mode 100644 (file)
index a8db2a9..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-Network README
---------------
-Here in .../Simulator/Network will be the new home for multi pilot
-related code.
-For the moment all you get is a new menu entry "Network" with the
-folowing entries:
-
-- Hyper Blast            : Toggles between LaRCsim and a tuned Flight-Model
-                           you can change between both "on the fly "
-- Toggle Display         : enable/disable info (Lat/Lon/Alt) about found player
-                           well, by now it will be you. ;-))
-- Display Netinfos       : n.i. will display more detailed information
-- Enter Callsign         : to enter your name
-- Scan for Deamons       : n.i. will scan the network for FGFS_D's
-- Register to FGD        : n.i. will allow pilot to connect to found Deamons
-- Show Pilots            : n.i. ? not yet sure what to show, maybe their planes
-- Send Message           : n.i. will send a message to a specific Pilot
-- Send Message to all    : n.i. obvious, isn't it ?
-- Unregister from Deamon : n.i. 
-
-In the Tools directory you will find some progs (one first try of deamon)
-to play with. There is also a README file, check it out.
-
-You don't need a net-access to test this new stuff since it is just an idea
-of how to incorporate a Multi-Pilot Mode in FGFS.
-
-There are two security options:
-a) Compiletime - commenting the "#define FG_NETWORK_OLK" in "network.h" 
-   disables ALL network related stuff in case of problems, shouldn't occur ;-)
-b) Runtime - setting the "int net_hud_display" variable to 0 disables any
-   network display (default)
-
-Have Phun
-Oliver  <delise@rp-plus.de>
diff --git a/src/Network/net_hud.cxx b/src/Network/net_hud.cxx
deleted file mode 100644 (file)
index 614f087..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-// network.cxx -- data structures for managing network.
-//
-// Written by Oliver Delise, started May 1999.
-//
-// Copyleft (C) 1999  Oliver Delise - delise@rp-plus.de
-//
-// 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; either version 2 of the
-// License, or (at your option) any later version.
-//
-// 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.
-//
-// $Id$
-
-
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
-
-/*
-
-#ifdef HAVE_WINDOWS_H
-#  include <windows.h>
-#endif
-
-#ifdef __BORLANDC__
-#  define exception c_exception
-#endif
-#include <math.h>
-
-#include <GL/glut.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_VALUES_H
-#  include <values.h>  // for MAXINT
-#endif
-
-#include <Aircraft/aircraft.hxx>
-#include <Debug/logstream.hxx>
-#include <GUI/gui.h>
-#include <Include/fg_constants.h>
-#include <Main/options.hxx>
-#include <Math/fg_random.h>
-#include <Math/mat3.h>
-#include <Math/polar3d.hxx>
-#include <Scenery/scenery.hxx>
-#include <Time/fg_timer.hxx>
-
-#if defined ( __sun__ ) || defined ( __sgi )
-extern "C" {
-  extern void *memmove(void *, const void *, size_t);
-}
-#endif
-
-*/
-
-#include <Main/options.hxx>
-#include <Cockpit/hud.hxx>
-
-extern char *net_callsign;
-
-
-void net_hud_update(){
- static char fgd_str[80];
- static float fgd_lon, fgd_lat, fgd_alt;
-  fgd_lon = get_longitude();
-  fgd_lat = get_latitude();
-  fgd_alt = get_altitude();
-  sprintf(fgd_str,"Found %s %3.3f %3.3f", net_callsign, fgd_lat, fgd_lon);
-//  HUD_TextList.add( fgText( 40, 18, net_callsign) );
-  HUD_TextList.add( fgText( 40, 18, fgd_str) );
-}
diff --git a/src/Network/network.cxx b/src/Network/network.cxx
deleted file mode 100644 (file)
index 9f9c2a4..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-// network.cxx -- data structures for initializing & managing network.
-//
-// Written by Oliver Delise, started May 1999.
-//
-// Copyleft (C) 1999  Oliver Delise - delise@rp-plus.de
-//
-// 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; either version 2 of the
-// License, or (at your option) any later version.
-//
-// 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.
-//
-// $Id$
-
-
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
-
-/*
-#ifdef HAVE_WINDOWS_H
-#  include <windows.h>
-#endif
-
-#ifdef __BORLANDC__
-#  define exception c_exception
-#endif
-#include <math.h>
-
-#include <GL/glut.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_VALUES_H
-#  include <values.h>  // for MAXINT
-#endif
-
-#include <Aircraft/aircraft.hxx>
-#include <Debug/logstream.hxx>
-#include <GUI/gui.h>
-#include <Include/fg_constants.h>
-#include <Main/options.hxx>
-#include <Math/fg_random.h>
-#include <Math/mat3.h>
-#include <Math/polar3d.hxx>
-#include <Scenery/scenery.hxx>
-#include <Time/fg_timer.hxx>
-
-#if defined ( __sun__ ) || defined ( __sgi )
-extern "C" {
-  extern void *memmove(void *, const void *, size_t);
-}
-#endif
-*/
-
-#include <Main/options.hxx>
-
-int  net_blast_toggle;
-int  net_hud_display;
-char *net_callsign;
-
-char *fg_net_init( void ){
-
- // We enable display of netinfos only if user wishes it via cmd-line param
- net_hud_display = (net_hud_display == 0) ? 0 : 1; 
- // Get pilot's name from options, can be modified at runtime via menu
- net_callsign = (char *) current_options.get_net_id().c_str();
- // Disable Blast Mode -1 = Disable, 0 = Enable  
- net_blast_toggle = -1; 
- return("activated");
-}
diff --git a/src/Network/network.h b/src/Network/network.h
deleted file mode 100644 (file)
index be2dffc..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// network.h -- public data structures for managing network.
-//
-// Written by Oliver Delise, started May 1999.
-//
-// Copyleft (C) 1999  Oliver Delise - delise@rp-plus.de
-//
-// 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; either version 2 of the
-// License, or (at your option) any later version.
-//
-// 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.
-//
-// $Id$
-
-#ifndef NETWORK_H
-#define NETWORK_H
-
-#define FGD
-
-extern char *net_callsign;
-extern int  net_hud_display;
-extern int  net_blast_toggle;
-extern char *fg_net_init( void );
-extern void net_hud_update( void );
-
-#endif