/usr/share/games/colobot/ai/tevite.txt is in colobot-common 0.1.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | extern void object::Example( )
{
while ( true )
{
float left, right;
left = radar(WayPoint, 45, 120, 0, 20);
right = radar(WayPoint, -45, 120, 0, 20);
if ( left == 0 && right == 0 ) // nothing ?
{
turn(180); // turn around
}
else
{
motor(left, right);
}
}
}
|