You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

  1. :PROPERTIES:
  2. :header-args: :tangle new.masm :comments link :noweb yes
  3. :END:
  4. * manual
  5. #+begin_src masm
  6. ubind type
  7. #+end_src
  8. * template
  9. #+begin_src masm
  10. control shootp obj unit shoot 0 0
  11. control configure obj configure 0 0 0
  12. control color obj r g b 0
  13. #+end_src
  14. ** toggles/set
  15. #+begin_src masm
  16. ucontrol boost enable 0 0 0 0
  17. ucontrol flag value 0 0 0 0
  18. #+end_src
  19. ** direct commands
  20. #+begin_src masm
  21. ucontrol idle 0 0 0 0 0
  22. ucontrol stop 0 0 0 0 0
  23. ucontrol pathfind 0 0 0 0 0
  24. ucontrol payDrop 0 0 0 0 0
  25. #+end_src
  26. ** direct with bool
  27. #+begin_src masm
  28. ucontrol payTake takeUnits 0 0 0 0
  29. #+end_src
  30. ** xy-direct
  31. #+begin_src masm
  32. ucontrol move x y 0 0 0
  33. ucontrol mine x y 0 0 0
  34. #+end_src
  35. ** xy-param-set
  36. #+begin_src masm
  37. ucontrol approach x y r 0 0
  38. control target x y shoot 0 0
  39. #+end_src
  40. ** xy-param-get
  41. #+begin_src masm
  42. ucontrol within x y raduis result 0
  43. ucontrol getBlock x y type building 0
  44. #+end_src
  45. ** other
  46. #+begin_src masm
  47. ucontrol targetp unit shoot 0 0 0
  48. ucontrol itemDrop to amount 0 0 0
  49. ucontrol itemTake from item amount 0 0
  50. ucontrol build x y block rotation config
  51. #+end_src
  52. * subclass
  53. ** radar, no 'from' param
  54. #+begin_src masm
  55. uradar boss boss player armor 0 order result
  56. #+end_src
  57. ** manual
  58. #+begin_src masm
  59. ulocate ore core enemy @copper outx outy found building
  60. ulocate building core enemy @copper outx outy found building
  61. ulocate spawn core enemy @copper outx outy found building
  62. ulocate damaged core enemy @copper outx outy found building
  63. #+end_src