BM.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. require("battle.Unit")
  2. local battle = BATTLE
  3. local ReceiverBase = require("core:erm.ReceiverBase")
  4. local BM = ReceiverBase:new()
  5. function BM:new(ERM, unitId)
  6. assert(unitId ~= nil, "!!BM requires unit identifier")
  7. return ReceiverBase.new(self,{ERM = ERM, unitId = unitId})
  8. end
  9. function BM:A(x, p1)
  10. if type(p1) == "nil" then
  11. local unit = battle:getUnitById(self.unitId)
  12. return unit:getAttack(false)
  13. else
  14. error("!!BM:A set is not implemented")
  15. end
  16. end
  17. function BM:B(x, ...)
  18. error("!!BM:B is not implemented")
  19. end
  20. function BM:C(x, ...)
  21. error("!!BM:C is not implemented")
  22. end
  23. function BM:D(x, ...)
  24. error("!!BM:D is not implemented")
  25. end
  26. function BM:E(x, ...)
  27. error("!!BM:E is not implemented")
  28. end
  29. function BM:F(x, ...)
  30. error("!!BM:F is not implemented")
  31. end
  32. function BM:G(x, ...)
  33. error("!!BM:G is not implemented")
  34. end
  35. function BM:H(x, ...)
  36. error("!!BM:H is not implemented")
  37. end
  38. function BM:J(x, ...)
  39. error("!!BM:J is not implemented")
  40. end
  41. function BM:K(x, ...)
  42. error("!!BM:K is not implemented")
  43. end
  44. function BM:L(x, ...)
  45. error("!!BM:L is not implemented")
  46. end
  47. function BM:M(x, ...)
  48. error("!!BM:M is not implemented")
  49. end
  50. function BM:N(x, ...)
  51. error("!!BM:N is not implemented")
  52. end
  53. function BM:O(x, ...)
  54. error("!!BM:O is not implemented")
  55. end
  56. function BM:P(x, ...)
  57. error("!!BM:P is not implemented")
  58. end
  59. function BM:Q(x, ...)
  60. error("!!BM:Q is not implemented")
  61. end
  62. function BM:R(x, ...)
  63. error("!!BM:R is not implemented")
  64. end
  65. function BM:S(x, ...)
  66. error("!!BM:S is not implemented")
  67. end
  68. function BM:T(x, ...)
  69. error("!!BM:T is not implemented")
  70. end
  71. function BM:U(x, ...)
  72. error("!!BM:U is not implemented")
  73. end
  74. function BM:V(x, ...)
  75. error("!!BM:V is not implemented")
  76. end
  77. return BM