World is part of the command interface for april library. It contains commands that open or close the worlds, change the status or querry their properties.
| w.adv <index> [steps] | advances the world at specified index 'steps' time units |
| w.adv <name> [steps] | advances the world having that name 'steps' time units |
| w.adv help | prints usage instructions |
| w.close <index> | close the world at specified index |
| w.close <name> | close the world having that name |
| w.close help | prints usage instructions |
| w.crt | prints the name of current world |
| w.crt <index> | changes current world to the one indicated by index |
| w.crt <name> | changes current world to the one indicated by name |
| w.crt help | prints usage instructions |
| w.list | lists the worlds and basic properties |
| w.list help | prints usage instructions |
| w.new | creates a new world with default values |
| w.new [name] [energy] | creates a world with given name and energy |
| w.new help | prints usage instructions |
| name | the name of the world; this will identify the world in future dialogs; when no name is given an unique one is generated; |
| energy | the ammount of energy in the world; this must be a positive integer. In order to set the energy you MUST set a name. By default the energy is set to 100000 units. |
| w.open <file-name> | opens specified file and loads the world inside |
| w.open help | prints usage instructions |
If the opperation is succefull the internal association is also updated.
| w.save [name] [file] | saves specified world to a file |
| w.save [index] [file] | saves specified world to a file |
| w.save help | prints usage instructions |
| name | the name of the world. |
| energy | where to save; if not specified the file asociated with the world is used. |
| w.start <index> | starts the world at specified index |
| w.start <name> | starts the world having that name |
| w.start help | prints usage instructions |
| w.stop <index> | stops the world at specified index |
| w.stop <name> | stops the world having that name |
| w.stop help | prints usage instructions |
| Unique identificators | april-cmd library | DNA |