Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cmdline.c File Reference

#include "conq.h"
#include "kpublic.h"
#include "cmdline.h"

Include dependency graph for cmdline.c:

Include dependency graph

Classes

struct  raw_spec

Defines

#define REQUIRE_ONE_ARG
#define GENERAL_OPTION   if (spec != general_options) continue;
#define VARIANT_OPTION   if (spec != variant_options) continue;
#define PLAYER_OPTION   if (spec != player_options) continue;

Functions

void init_options (void)
void parse_command_line (int argc, char *argv[], int spec)
void add_a_module (char *name, char *filename)
void load_all_modules (void)
void set_variants_from_options (void)
void set_players_from_options (void)
void print_instructions (void)

Variables

short initially_no_ai
char * option_game_to_host = NULL
char * option_game_to_join = NULL
int option_num_to_wait_for = 0
char * args_used
raw_specraw_player_specs
raw_speclast_raw_player_spec
char * raw_default_player_spec

Define Documentation

#define GENERAL_OPTION   if (spec != general_options) continue;
 

#define PLAYER_OPTION   if (spec != player_options) continue;
 

#define REQUIRE_ONE_ARG
 

Value:

if (i + 1 >= argc) {  \
    fprintf(stderr, "Error: `%s' requires an argument, exiting now\n", argv[i]);  \
    had_error = TRUE;  \
    continue;  \
  }  \
  numused = 2;

#define VARIANT_OPTION   if (spec != variant_options) continue;
 


Function Documentation

void add_a_module char *  name,
char *  filename
 

void init_options void   ) 
 

void load_all_modules void   ) 
 

void parse_command_line int  argc,
char *  argv[],
int  spec
 

void print_instructions void   ) 
 

void set_players_from_options void   ) 
 

void set_variants_from_options void   ) 
 


Variable Documentation

char* args_used
 

short initially_no_ai
 

struct raw_spec * last_raw_player_spec
 

char* option_game_to_host = NULL
 

char* option_game_to_join = NULL
 

int option_num_to_wait_for = 0
 

char* raw_default_player_spec
 

struct raw_spec * raw_player_specs
 


Generated on Sat Sep 17 10:29:03 2005 for XconqKernel by doxygen 1.3.6