mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Add World:isLocked and const-ify a few worthy methods
--HG-- branch : box2d-update
This commit is contained in:
@@ -202,48 +202,55 @@ namespace box2d
|
||||
* @return True if allowed, false if disallowed.
|
||||
**/
|
||||
bool getAllowSleeping() const;
|
||||
|
||||
/**
|
||||
* Returns whether this World is currently locked.
|
||||
* If it's locked, it's in the middle of a timestep.
|
||||
* @return Whether the World is locked.
|
||||
**/
|
||||
bool isLocked() const;
|
||||
|
||||
/**
|
||||
* Get the current body count.
|
||||
* @return The number of bodies.
|
||||
**/
|
||||
int getBodyCount();
|
||||
int getBodyCount() const;
|
||||
|
||||
/**
|
||||
* Get the current joint count.
|
||||
* @return The number of joints.
|
||||
**/
|
||||
int getJointCount();
|
||||
int getJointCount() const;
|
||||
|
||||
/**
|
||||
* Get the current contact count.
|
||||
* @return The number of contacts.
|
||||
**/
|
||||
int getContactCount();
|
||||
int getContactCount() const;
|
||||
|
||||
/**
|
||||
* Get an array of all the Bodies in the World.
|
||||
* @return An array of Bodies.
|
||||
**/
|
||||
int getBodyList(lua_State * L);
|
||||
int getBodyList(lua_State * L) const;
|
||||
|
||||
/**
|
||||
* Get an array of all the Joints in the World.
|
||||
* @return An array of Joints.
|
||||
**/
|
||||
int getJointList(lua_State * L);
|
||||
int getJointList(lua_State * L) const;
|
||||
|
||||
/**
|
||||
* Get an array of all the Contacts in the World.
|
||||
* @return An array of Contacts.
|
||||
**/
|
||||
int getContactList(lua_State * L);
|
||||
int getContactList(lua_State * L) const;
|
||||
|
||||
/**
|
||||
* Gets the ground body.
|
||||
* @return The ground body.
|
||||
**/
|
||||
b2Body * getGroundBody();
|
||||
b2Body * getGroundBody() const;
|
||||
|
||||
/**
|
||||
* Gets all fixtures that overlap a given bounding box.
|
||||
|
||||
Reference in New Issue
Block a user