cuikworld2world.c File Reference

Detailed Description

dot_inline_dotgraph_61.png

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.

Functions

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.

Use:

  • cuikworld2world world_in.world world_out.world

Where:

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

File extensions are optional.

Parameters
argcNumber of elements in the command line that starts the application (i.e., the cuikanimate command itself and its arguments).
argStrings with the arguments.
Returns
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.