2012-12-29 10:30:42 +00:00
|
|
|
extern void object::Solution( )
|
|
|
|
{
|
|
|
|
for ( int i=0 ; i<3 ; i=i+1 )
|
|
|
|
{
|
|
|
|
object item;
|
|
|
|
point dest;
|
|
|
|
|
|
|
|
item = radar(Titanium, 0, 360, 0, 1000, -1);
|
|
|
|
if ( item == null ) return;
|
|
|
|
goto(item.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
|
|
|
|
}
|
|
|
|
}
|