Rename love.physics getObjectList functions to getObjects (resolves #1305)

World:getBodyList -> World:getBodies
World:getContactList -> World:getContacts
World:getJointList -> World:getJoints

Body:getFixtureList -> Body:getFixtures
Body:getContactList -> Body:getContacts
Body:getJointList -> Body:getJoints

Marked the old functions as deprecated

--HG--
branch : minor
This commit is contained in:
Bart van Strien
2017-09-13 15:48:53 +02:00
parent 7dae80f552
commit 23929cab14
6 changed files with 77 additions and 30 deletions
+3 -3
View File
@@ -245,19 +245,19 @@ public:
* Get an array of all the Bodies in the World.
* @return An array of Bodies.
**/
int getBodyList(lua_State *L) const;
int getBodies(lua_State *L) const;
/**
* Get an array of all the Joints in the World.
* @return An array of Joints.
**/
int getJointList(lua_State *L) const;
int getJoints(lua_State *L) const;
/**
* Get an array of all the Contacts in the World.
* @return An array of Contacts.
**/
int getContactList(lua_State *L) const;
int getContacts(lua_State *L) const;
/**
* Gets the ground body.