dobringtoab.act
来自「一个用来控制poineer2型机器人的智能体软件」· ACT 代码 · 共 55 行
ACT
55 行
/*
* For now there is no bringto function
* from Markus Hinrichs and Baschir Jaghoori
* for testing purposes
* TODO: replace the patrol function
* with the bringto function
*
* load bringto.act;
*
*/
/*load sample.act;*/
/*
* necessary to prevent a possible name collision
* next time starting the activity
*/
/*remove dobringtoab;*/
/***************************************************/
act dobringtoab()
{
int x;
/*
* start bringto("a", "b");
*/
sfMessage("Performing dobringtoab in Saphira");
/*
* wait a while
*/
x=50;
loop:
if (x == 0) goto finish;
onInit:
x = x-1;
goto loop;
finish:
sfMessage("dobringtoab in Saphira DONE");
succeed;
/*
start patrol(2);
*/
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?