Logo Search packages:      
Sourcecode: xblast version File versions  Download package

setup.h

/*
 * Programm XBLAST V2.5.11 or higher
 * (C) by Oliver Vogel (e-mail: vogel@ikp.uni-koeln.de)
 * Novermber 16th, 1997
 * started August 1993
 *
 * File: setup.h 
 * header file for xsetup.c
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public Licences as published
 * by the Free Software Foundation; either version 2; or (at your option)
 * any later version
 *
 * This program is distributed in the hope that it will entertaining,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Publis 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: setup.h,v 1.1 1998/01/03 14:08:37 xblast Exp $
 * $Log: setup.h,v $
 * Revision 1.1  1998/01/03 14:08:37  xblast
 * Initial revision
 *
 */

#ifndef _XSETUP_H
#define _XSETUP_H

#ifdef _XSETUP_C
#define _EXTERN 
#else
#define _EXTERN extern
#endif

#ifdef __STDC__
_EXTERN char **split_string (char *string, int *largc);
_EXTERN void parse_commandline (int argc, char *argv[]);
_EXTERN int interactive_config (char *argv0);
_EXTERN void interactive_setup (int num_player);
_EXTERN void send_setup (int num_player);
_EXTERN void receive_setup (int num_player);
_EXTERN void config_from_database (XBConfig *config);
#ifdef DEBUG
_EXTERN void debug_from_database (XBDebug *debug);
#endif
#ifdef XBLAST_SOUND
_EXTERN char *sound_server_from_database (void);
#endif
_EXTERN void set_setup_communication (int type);
_EXTERN void merge_default_databases (XBConfig *config);
_EXTERN void setup_from_database (XBSettings *setup);
_EXTERN void player_from_database (BMPlayer *ps);
_EXTERN void player_strings_from_database (PlayerStrings *st, XBConfig *conf);
_EXTERN void save_setup (XBConfig *config, XBSettings *setup, PlayerStrings *st);
_EXTERN void create_display_database (void);
_EXTERN int keys_from_database (int player, KeyPressDefine *keydef,
                        PlayerAction *pa);
_EXTERN int release_from_database (int player, KeyPressDefine *keydef,
                        PlayerAction *pa);
_EXTERN void graphics_setup_from_database (XBGraphicsSetup *gfx_setup);
_EXTERN int override_from_database (void);
_EXTERN void get_font_resources (char **font_name);
_EXTERN void get_color_resources (DisplayColor *dc, PlayerColor *pc);
_EXTERN void delete_databases (void);

#else

_EXTERN char **split_string ();
_EXTERN void parse_commandline ();
_EXTERN int interactive_config ();
_EXTERN void interactive_setup ();
_EXTERN void send_setup ();
_EXTERN void receive_setup ();
_EXTERN void config_from_database ();
#ifdef DEBUG
_EXTERN void debug_from_database ();
#endif
#ifdef XBLAST_SOUND
_EXTERN char *sound_server_from_database ();
#endif
_EXTERN void set_setup_communication ();
_EXTERN void merge_default_databases ();
_EXTERN void setup_from_database ();
_EXTERN void player_from_database (BMPlayer *ps);
_EXTERN void player_strings_from_database ();
_EXTERN void save_setup ();
_EXTERN void create_display_database ();
_EXTERN int keys_from_database ();
_EXTERN int release_from_database ();
_EXTERN void graphics_setup_from_database ();
_EXTERN int override_from_database ();
_EXTERN void get_font_resources ();
_EXTERN void get_color_resources ();
_EXTERN void delete_databases ();
#endif

#undef _EXTERN

#endif
/*
 * end of file xsetup.h
 */




Generated by  Doxygen 1.6.0   Back to index