april  1.0.0
...
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages

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

Usage

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 helpprints usage instructions



w.close

Usage

w.close <index> close the world at specified index
w.close <name> close the world having that name
w.close helpprints usage instructions



w.crt

Usage

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 helpprints usage instructions



w.list

Usage

w.list lists the worlds and basic properties
w.list helpprints usage instructions



w.new

Usage

w.new creates a new world with default values
w.new [name] [energy]creates a world with given name and energy
w.new helpprints usage instructions

Options

namethe name of the world; this will identify the world in future dialogs; when no name is given an unique one is generated;
energythe 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

Usage

w.open <file-name> opens specified file and loads the world inside
w.open helpprints usage instructions



w.save

If the opperation is succefull the internal association is also updated.

Usage

w.save [name] [file]saves specified world to a file
w.save [index] [file]saves specified world to a file
w.save helpprints usage instructions

Options

namethe name of the world.
energywhere to save; if not specified the file asociated with the world is used.



w.start

Usage

w.start <index> starts the world at specified index
w.start <name> starts the world having that name
w.start helpprints usage instructions



w.stop

Usage

w.stop <index> stops the world at specified index
w.stop <name> stops the world having that name
w.stop helpprints usage instructions




Unique identificators april-cmd library DNA