Go to the first, previous, next, last section, table of contents.

Including Other Modules

You can include one game module in another.

Form: include [if-needed] module-name [variant-settings]

This form has the effect of inserting the contents of module-name into the current position in the module. game-module forms in the included module are not inserted, although they are remembered and may appear in displays. Xconq will fail completely if the included module cannot be found.

Unlike C etc, the same module cannot be included more than once; you will get a warning and the module will not be loaded.

Note that the module names are not file names, so that system-specific features like directories and devices cannot be included. The mapping between module name and file name is interface-specific, so if you want to distribute a module, you should make sure all the module names don't have anything nonportable embedded. Alphanumeric characters and hyphens are guaranteed to be portable.


Go to the first, previous, next, last section, table of contents.