$world->path
$world->path function: generate sequences of directions forming a PATH
void $world->path( |
str
) ; |
str is a string defining a path. The following example shows the features of paths:
3n2e4n2e{ne}e{open door}3n
The general syntax syntax is "<number of
repetitions><command>
". "<number of
repetitions>
" can be omitted, in this case it is considered
as 1. command
is the command that will be repeated.
If it is not a one-letter command, it should be enclosed in braces
({}
).
The example above would generate these commands:
n n n e e n n n n e e ne e open door n n n
The commands are sent using the settings in the Sending tab of the Preferences dialog (see Section 5.2, “Sending”).