Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. public class variables
  2. {
  3. static object item;
  4. static point river;
  5. static point converter;
  6. static point derrick;
  7. static point powerplant;
  8. }
  9.  
  10. public void object::waitfor(int cat, bool type)
  11. {
  12. variables readvar();
  13. if(type == true){
  14. do readvar.item = radar(cat);
  15. while(readvar.item == null);
  16. }
  17. else{
  18. do readvar.item = radar(cat);
  19. while(readvar.item != null);
  20. }
  21. }
  22.  
  23. public void object::fastconvert()
  24. {
  25. variables readvar();
  26. grab(Behind);
  27. move(distance(this.position, readvar.converter));
  28. drop();
  29. move(-distance(this.position, readvar.derrick));
  30. waitfor(TitaniumOre, false);
  31. waitfor(TitaniumOre, true);
  32. grab(Behind);
  33. move(distance(this.position, readvar.converter));
  34. turn(65);
  35. drop();
  36. turn(-65);
  37. grab();
  38. move(-distance(this.position, readvar.converter));
  39. turn(65);
  40. drop(Behind);
  41. grab();
  42. turn(-65);
  43. drop();
  44. turn(65);
  45. grab(Behind);
  46. }
  47.  
  48. extern void object::davbattle()
  49. {
  50. variables readvar();
  51. readvar.river = this.position;
  52. grab();
  53. move(-9.15);
  54. drop();
  55. move(-1.15);
  56. readvar.converter = this.position;
  57. build(Converter);
  58. readvar.derrick = this.position;
  59. fastconvert();
  60. turn(25);
  61. move(4.9);
  62. drop();
  63. move(-1);
  64. readvar.powerplant = this.position;
  65. build(PowerPlant);
  66. turn(-90);
  67. grab();
  68. turn(direction(readvar.powerplant));
  69. move(distance(this.position, readvar.powerplant));
  70. drop();
  71. turn(direction(readvar.derrick));
  72. move(distance(this.position, readvar.derrick));
  73. turn(direction(readvar.converter));
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement