home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Revista CD Expert 51
/
PCGamer51_17Demos.iso
/
games
/
colobotdemo
/
colobotdemo10e.exe
/
script
/
tremova3.txt
< prev
next >
Wrap
Text File
|
2001-06-10
|
629b
|
37 lines
extern void object::Solution( )
{
for ( int i=0 ; i<2 ; i=i+1 )
{
object obj;
point dest;
do
{
obj = radar(TitaniumOre);
}
while ( obj == null );
goto(obj.position);
grab(); // prend le minerai
obj = radar(Converter);
if ( obj == null ) return;
goto(obj.position);
drop(); // dΘpose minerai
move(-4); // recule
do
{
obj = radar(Titanium, 0, 360, 0, 10);
}
while ( obj == null );
goto(obj.position);
grab(); // prend le mΘtal
dest.x = 10;
dest.y = -60-5*i;
goto(dest); // va sur la plateforme
drop(); // dΘpose le mΘtal
}
}