home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 51 / PCGamer51_17Demos.iso / games / colobotdemo / colobotdemo10e.exe / help / mllune1.txt < prev    next >
Text File  |  2001-06-25  |  911b  |  18 lines

  1. \b;Programs dispatched by Houston
  2. Following is a program that has been developed by our engineers. It allows you to switch \l;power cells\u object\power;. A charged cell needs to be placed on the ground in front of the bot.
  3.  
  4. In order to execute this program, select the program \c;SwitchCell1\n; in the list of the programs available on the bot (on the lower left-hand corner of your screen), and click on the arrow symbol \button 21;.
  5. \c;
  6. \s;extern void object::SwitchCell1()
  7. \s;{
  8. \s;    \l;grab\u cbot\grab;(InFront);     // takes the new cell in front
  9. \s;    \l;drop\u cbot\drop;(Behind);      // and drops it behind
  10. \s;    
  11. \s;    \l;grab\u cbot\grab;(EnergyCell);  // takes the cell from the bot
  12. \s;    \l;drop\u cbot\drop;(InFront);     // and drops it in front
  13. \s;    
  14. \s;    \l;grab\u cbot\grab;(Behind);      // takes the new cell
  15. \s;    \l;drop\u cbot\drop;(EnergyCell);  // and drops it on the bot
  16. \s;}
  17. \n;
  18.