Commits

Alex Szpakowski  committed a17347b

Removed ParticleSystem:getX/getY (resolves issue #633)

  • Participants
  • Parent commits 8a23778

Comments (0)

Files changed (4)

File src/modules/graphics/opengl/ParticleSystem.cpp

 	return position;
 }
 
-float ParticleSystem::getX() const
-{
-	return position.getX();
-}
-
-float ParticleSystem::getY() const
-{
-	return position.getY();
-}
-
 void ParticleSystem::setAreaSpread(AreaSpreadDistribution distribution, float x, float y)
 {
 	areaSpread = love::Vector(x, y);

File src/modules/graphics/opengl/ParticleSystem.h

 	const love::Vector &getPosition() const;
 
 	/**
-	 * Returns the x-coordinate of the emitter's position.
-	 **/
-	float getX() const;
-
-	/**
-	 * Returns the y-coordinate of the emitter's position.
-	 **/
-	float getY() const;
-
-	/**
 	 * Sets the emission area spread parameters and distribution type. The interpretation of
 	 * the parameters depends on the distribution type:
 	 *

File src/modules/graphics/opengl/wrap_ParticleSystem.cpp

 	return 2;
 }
 
-int w_ParticleSystem_getX(lua_State *L)
-{
-	ParticleSystem *t = luax_checkparticlesystem(L, 1);
-	lua_pushnumber(L, t->getX());
-	return 1;
-}
-
-int w_ParticleSystem_getY(lua_State *L)
-{
-	ParticleSystem *t = luax_checkparticlesystem(L, 1);
-	lua_pushnumber(L, t->getY());
-	return 1;
-}
-
 int w_ParticleSystem_setAreaSpread(lua_State *L)
 {
 	ParticleSystem *t = luax_checkparticlesystem(L, 1);
 	{ "getParticleLifetime", w_ParticleSystem_getParticleLifetime },
 	{ "setPosition", w_ParticleSystem_setPosition },
 	{ "getPosition", w_ParticleSystem_getPosition },
-	{ "getX", w_ParticleSystem_getX },
-	{ "getY", w_ParticleSystem_getY },
 	{ "setAreaSpread", w_ParticleSystem_setAreaSpread },
 	{ "getAreaSpread", w_ParticleSystem_getAreaSpread },
 	{ "setDirection", w_ParticleSystem_setDirection },

File src/modules/graphics/opengl/wrap_ParticleSystem.h

 int w_ParticleSystem_getParticleLifetime(lua_State *L);
 int w_ParticleSystem_setPosition(lua_State *L);
 int w_ParticleSystem_getPosition(lua_State *L);
-int w_ParticleSystem_getX(lua_State *L);
-int w_ParticleSystem_getY(lua_State *L);
 int w_ParticleSystem_setAreaSpread(lua_State *L);
 int w_ParticleSystem_getAreaSpread(lua_State *L);
 int w_ParticleSystem_setDirection(lua_State *L);