extern void object::CollectTitanium1() { // 1) Variable definition. object item; // info. about objects // 2) Goes toward the titanium ore and grabs it. item = radar(TitaniumOre);// looks for titanium ore goto(item.position); // goes to the position grab(); // grabs the titanium // 3) Goes toward the converter and drops it. item = radar(Converter); // looks for converter goto(item.position); // goes to the position drop(); // drops the titanium move(-2.5); // steps back 2.5 m }