/usr/share/games/colobot/ai/tremova3.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 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | extern void object::Example( )
{
for ( int i=0 ; i<2 ; i=i+1 )
{
object obj;
point dest;
do
{
obj = radar(TitaniumOre);
}
while ( obj == null );
goto(obj.position);
grab(); // grab the titanium ore
obj = radar(Converter);
if ( obj == null ) return;
goto(obj.position);
drop(); // drop the titanium ore
move(-2.5); // move backward
do
{
obj = radar(Titanium, 0, 360, 0, 5);
}
while ( obj == null );
goto(obj.position);
grab(); // grab the titanium cube
dest.x = 10;
dest.y = -60-5*i;
goto(dest); // go to the plateform
drop(); // drop the titanium cube
}
}
|