wrap_Body.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /**
  2. * Copyright (c) 2006-2014 LOVE Development Team
  3. *
  4. * This software is provided 'as-is', without any express or implied
  5. * warranty. In no event will the authors be held liable for any damages
  6. * arising from the use of this software.
  7. *
  8. * Permission is granted to anyone to use this software for any purpose,
  9. * including commercial applications, and to alter it and redistribute it
  10. * freely, subject to the following restrictions:
  11. *
  12. * 1. The origin of this software must not be misrepresented; you must not
  13. * claim that you wrote the original software. If you use this software
  14. * in a product, an acknowledgment in the product documentation would be
  15. * appreciated but is not required.
  16. * 2. Altered source versions must be plainly marked as such, and must not be
  17. * misrepresented as being the original software.
  18. * 3. This notice may not be removed or altered from any source distribution.
  19. **/
  20. #ifndef LOVE_PHYSICS_BOX2D_WRAP_BODY_H
  21. #define LOVE_PHYSICS_BOX2D_WRAP_BODY_H
  22. // LOVE
  23. #include "common/runtime.h"
  24. #include "Body.h"
  25. namespace love
  26. {
  27. namespace physics
  28. {
  29. namespace box2d
  30. {
  31. Body *luax_checkbody(lua_State *L, int idx);
  32. int w_Body_getX(lua_State *L);
  33. int w_Body_getY(lua_State *L);
  34. int w_Body_getAngle(lua_State *L);
  35. int w_Body_getPosition(lua_State *L);
  36. int w_Body_getLinearVelocity(lua_State *L);
  37. int w_Body_getWorldCenter(lua_State *L);
  38. int w_Body_getLocalCenter(lua_State *L);
  39. int w_Body_getAngularVelocity(lua_State *L);
  40. int w_Body_getMass(lua_State *L);
  41. int w_Body_getInertia(lua_State *L);
  42. int w_Body_getMassData(lua_State *L);
  43. int w_Body_getAngularDamping(lua_State *L);
  44. int w_Body_getLinearDamping(lua_State *L);
  45. int w_Body_getGravityScale(lua_State *L);
  46. int w_Body_getType(lua_State *L);
  47. int w_Body_applyLinearImpulse(lua_State *L);
  48. int w_Body_applyAngularImpulse(lua_State *L);
  49. int w_Body_applyTorque(lua_State *L);
  50. int w_Body_applyForce(lua_State *L);
  51. int w_Body_setX(lua_State *L);
  52. int w_Body_setY(lua_State *L);
  53. int w_Body_setLinearVelocity(lua_State *L);
  54. int w_Body_setAngle(lua_State *L);
  55. int w_Body_setAngularVelocity(lua_State *L);
  56. int w_Body_setPosition(lua_State *L);
  57. int w_Body_resetMassData(lua_State *L);
  58. int w_Body_setMassData(lua_State *L);
  59. int w_Body_setMass(lua_State *L);
  60. int w_Body_setInertia(lua_State *L);
  61. int w_Body_setAngularDamping(lua_State *L);
  62. int w_Body_setLinearDamping(lua_State *L);
  63. int w_Body_setGravityScale(lua_State *L);
  64. int w_Body_setType(lua_State *L);
  65. int w_Body_getWorldPoint(lua_State *L);
  66. int w_Body_getWorldVector(lua_State *L);
  67. int w_Body_getWorldPoints(lua_State *L);
  68. int w_Body_getLocalPoint(lua_State *L);
  69. int w_Body_getLocalVector(lua_State *L);
  70. int w_Body_getLinearVelocityFromWorldPoint(lua_State *L);
  71. int w_Body_getLinearVelocityFromLocalPoint(lua_State *L);
  72. int w_Body_isBullet(lua_State *L);
  73. int w_Body_setBullet(lua_State *L);
  74. int w_Body_isActive(lua_State *L);
  75. int w_Body_isAwake(lua_State *L);
  76. int w_Body_setSleepingAllowed(lua_State *L);
  77. int w_Body_isSleepingAllowed(lua_State *L);
  78. int w_Body_setActive(lua_State *L);
  79. int w_Body_setAwake(lua_State *L);
  80. int w_Body_setFixedRotation(lua_State *L);
  81. int w_Body_isFixedRotation(lua_State *L);
  82. int w_Body_getWorld(lua_State *L);
  83. int w_Body_getFixtureList(lua_State *L);
  84. int w_Body_getJointList(lua_State *L);
  85. int w_Body_getContactList(lua_State *L);
  86. int w_Body_destroy(lua_State *L);
  87. int w_Body_setUserData(lua_State *L);
  88. int w_Body_getUserData(lua_State *L);
  89. extern "C" int luaopen_body(lua_State *L);
  90. } // box2d
  91. } // physics
  92. } // love
  93. #endif // LOVE_PHYSICS_BOX2D_WRAP_BODY_H