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

module.h File Reference

Definitions for game modules in XConq. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  a_variant
 Variant. More...

struct  a_module
 Module. More...


Defines

#define for_all_modules(m)   for (m = modulelist; m != NULL; m = m->next)
 Iterate modules.

#define for_all_includes(m, sub)   for (sub = m->include; sub != NULL; sub = sub->nextinclude)
 Iterate through included modules.


Typedefs

typedef a_variant Variant
 Variant.

typedef a_module Module
 Module.


Functions

void clear_game_modules (void)
Modulecreate_game_module (char *name)
Modulefind_game_module (char *name)
Moduleget_game_module (char *name)
Moduleadd_game_module (char *name, Module *includer)
void load_default_game (void)
int load_game_description (Module *module)
void load_game_module (Module *module, int dowarn)
void load_base_module (Module *module)
int open_module (Module *module, int dowarn)
void read_forms (Module *module)
void copy_module (Module *module, Module *origmodule)
void init_module_reshape (Module *module)
int reshape_the_output (Module *module)
int valid_reshape (Module *module)
void close_module (Module *module)
char * module_desig (Module *module)
void do_module_variants (Module *module, Obj *lis)
char * saved_game_filename (void)
char * checkpoint_filename (int n)
char * statistics_filename (void)
char * preferences_filename (void)
char * old_preferences_filename (void)

Variables

Modulemodulelist
 List of Modules.

Modulemainmodule
 Main module.


Detailed Description

Definitions for game modules in XConq.


Define Documentation

#define for_all_includes m,
sub   )     for (sub = m->include; sub != NULL; sub = sub->nextinclude)
 

Iterate through included modules.

Iteration over the list of modules included in a module.

Parameters:
m is the module to iterate through the included moudles.
sub is the sub module iteration variable.

#define for_all_modules  )     for (m = modulelist; m != NULL; m = m->next)
 

Iterate modules.

Iteration over the list of modules.

Parameters:
m is the module iteration variable.


Typedef Documentation

typedef struct a_module Module
 

Module.

A file module records relevant info about the module, what it included, how to write it out, etc.

typedef struct a_variant Variant
 

Variant.

A variant describes an option that is available to players starting up a game, as well as modules including each other.


Function Documentation

Module* add_game_module char *  name,
Module includer
 

char* checkpoint_filename int  n  ) 
 

void clear_game_modules void   ) 
 

void close_module Module module  ) 
 

void copy_module Module module,
Module origmodule
 

Module* create_game_module char *  name  ) 
 

void do_module_variants Module module,
Obj lis
 

Module* find_game_module char *  name  ) 
 

Module* get_game_module char *  name  ) 
 

void init_module_reshape Module module  ) 
 

void load_base_module Module module  ) 
 

void load_default_game void   ) 
 

int load_game_description Module module  ) 
 

void load_game_module Module module,
int  dowarn
 

char* module_desig Module module  ) 
 

char* old_preferences_filename void   ) 
 

int open_module Module module,
int  dowarn
 

char* preferences_filename void   ) 
 

void read_forms Module module  ) 
 

int reshape_the_output Module module  ) 
 

char* saved_game_filename void   ) 
 

char* statistics_filename void   ) 
 

int valid_reshape Module module  ) 
 


Variable Documentation

Module* mainmodule
 

Main module.

Module* modulelist
 

List of Modules.


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