Browse Source

Renamed ChainShape:setPrevVertex to ChainShape:setPreviousVertex (see issue #691)

Alex Szpakowski 12 years ago
parent
commit
951f5740bb

+ 2 - 2
src/modules/physics/box2d/ChainShape.cpp

@@ -55,11 +55,11 @@ void ChainShape::setNextVertex(float x, float y)
 	c->SetNextVertex(Physics::scaleDown(v));
 	c->SetNextVertex(Physics::scaleDown(v));
 }
 }
 
 
-void ChainShape::setPrevVertex(float x, float y)
+void ChainShape::setPreviousVertex(float x, float y)
 {
 {
 	if (loop)
 	if (loop)
 	{
 	{
-		throw love::Exception("Physics error: Can't call setPrevVertex on a loop ChainShape");
+		throw love::Exception("Physics error: Can't call setPreviousVertex on a loop ChainShape");
 		return;
 		return;
 	}
 	}
 	b2Vec2 v(x, y);
 	b2Vec2 v(x, y);

+ 1 - 1
src/modules/physics/box2d/ChainShape.h

@@ -61,7 +61,7 @@ public:
 	 * @param x The x-coordinate of the vertex.
 	 * @param x The x-coordinate of the vertex.
 	 * @param y The y-coordinate of the vertex.
 	 * @param y The y-coordinate of the vertex.
 	 **/
 	 **/
-	void setPrevVertex(float x, float y);
+	void setPreviousVertex(float x, float y);
 
 
 	/**
 	/**
 	 * Gets the number of children shapes.
 	 * Gets the number of children shapes.

+ 3 - 3
src/modules/physics/box2d/wrap_ChainShape.cpp

@@ -43,12 +43,12 @@ int w_ChainShape_setNextVertex(lua_State *L)
 	return 0;
 	return 0;
 }
 }
 
 
-int w_ChainShape_setPrevVertex(lua_State *L)
+int w_ChainShape_setPreviousVertex(lua_State *L)
 {
 {
 	ChainShape *c = luax_checkchainshape(L, 1);
 	ChainShape *c = luax_checkchainshape(L, 1);
 	float x = (float)luaL_checknumber(L, 2);
 	float x = (float)luaL_checknumber(L, 2);
 	float y = (float)luaL_checknumber(L, 3);
 	float y = (float)luaL_checknumber(L, 3);
-	EXCEPT_GUARD(c->setPrevVertex(x, y);)
+	EXCEPT_GUARD(c->setPreviousVertex(x, y);)
 	return 0;
 	return 0;
 }
 }
 
 
@@ -107,7 +107,7 @@ int w_ChainShape_getPoints(lua_State *L)
 static const luaL_Reg functions[] =
 static const luaL_Reg functions[] =
 {
 {
 	{ "setNextVertex", w_ChainShape_setNextVertex },
 	{ "setNextVertex", w_ChainShape_setNextVertex },
-	{ "setPrevVertex", w_ChainShape_setPrevVertex },
+	{ "setPreviousVertex", w_ChainShape_setPreviousVertex },
 	{ "getChildCount", w_ChainShape_getChildCount },
 	{ "getChildCount", w_ChainShape_getChildCount },
 	{ "getChildEdge", w_ChainShape_getChildEdge },
 	{ "getChildEdge", w_ChainShape_getChildEdge },
 	{ "getVertexCount", w_ChainShape_getVertexCount },
 	{ "getVertexCount", w_ChainShape_getVertexCount },

+ 1 - 1
src/modules/physics/box2d/wrap_ChainShape.h

@@ -36,7 +36,7 @@ namespace box2d
 ChainShape *luax_checkchainshape(lua_State *L, int idx);
 ChainShape *luax_checkchainshape(lua_State *L, int idx);
 
 
 int w_ChainShape_setNextVertex(lua_State *L);
 int w_ChainShape_setNextVertex(lua_State *L);
-int w_ChainShape_setPrevVertex(lua_State *L);
+int w_ChainShape_setPreviousVertex(lua_State *L);
 int w_ChainShape_getChildCount(lua_State *L);
 int w_ChainShape_getChildCount(lua_State *L);
 int w_ChainShape_getChildEdge(lua_State *L);
 int w_ChainShape_getChildEdge(lua_State *L);
 int w_ChainShape_getVertexCount(lua_State *L);
 int w_ChainShape_getVertexCount(lua_State *L);