cuikworld2world.c File Reference

Detailed Description


This application flattens a world definition: reads a world file possibly including many other world files and generates a single world file with all the information. Moreover, it unifies the collision information that can be split in the different included files.

This is basically used for debug and also to compact the world definitions.

Definition in file cuikworld2world.c.


int main (int argc, char **arg)
 Main body of the cuikworld2world application. More...

Function Documentation

int main ( int  argc,
char **  arg 

Main body of the cuikworld2world application.


  • cuikworld2world


  • world_in: File describing the problem.
  • world_out: The output world file.

File extensions are optional.

argcNumber of elements in the command line that starts the application (i.e., the cuikanimate command itself and its arguments).
argStrings with the arguments.
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 57 of file cuikworld2world.c.

References CreateFileName(), DeleteFileName(), DeleteParameters(), DeleteWorld(), GetFileFullName(), InitParametersFromFile(), InitWorldFromFile(), PARAM_EXT, PrintWorld(), and WORLD_EXT.