We have improved the recharge program. When it arrives at the \l;power station\u object\station;, the bot does not wait exactly 5 seconds, but only until the \l;power cell\u object\power; is fully charged. After the bot is back at the initial position, it displays a message on the screen.
\c;
\s;extern void object::Recharge2()
\s;{
\s; \l;point\u cbot\type; start; // variable for initial pos.
\s; \l;object\u cbot\type; item; // info. about power station
\s;
\s; start = position; // stores initial position
\s;
\s; item = \l;radar\u cbot\radar;(\l;PowerStation\u cbot\category;); // looks for station
\s; \l;goto\u cbot\goto;(item.position); // goes to the power station