home *** CD-ROM | disk | FTP | other *** search
- extern void object::Recharge3()
- {
- point depart;
- object item;
-
- depart = position; // MΘmorise position initiale
-
- item = radar(PowerCaptor); // Cherche station
- goto(item.position); // Va sur la station
-
- while ( energyCell.energyLevel < 1 )
- {
- wait(1); // Attend pile pleine
- }
-
- goto(depart); // retourne α la position initiale
- message("Recharge terminΘe");
- }
-