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

Actor module is part of the command interface for april library.



a.kill

This function terminates an actor in current world (the actor may not be removed immediatelly but will be dead). The energy of the actor and of alll of its components will be added to the free energy of the current world.

Usage

a.kill <index> kills an actor in current world
a.kill helpprints usage instructions

Options

indexthe index of the actor in the world



a.kinds

The list of registered types of actors. This function lists all types but a.new is only capable of creating actors of kinds created with dna.new

Usage

a.kinds list kinds of actors
a.kinds helpprints usage instructions



a.list

This function lists actors in current world and some of their basic properties (id, name of the id, date of birth and death, current age and ammount of energy inside).

Usage

a.list lists actors in current world
a.list helpprints usage instructions



a.new

This function creates a new actor in current world. The kind must be one that has an associated DNA. The energy for the actor is taken from the free energy of the world.

Usage

a.new <kind> create new actor instance
a.new helpprints usage instructions

Options

kindthe kind of the actor to produce; to create a kind use dna.new




DNA april-cmd library Sensors