lua/wrappers/game/lua_game_object.cpp
/**
	 * Moves a GameObject by {x, y} amount.
	 * If the new location isn't valid, the GameObject isn't moved.
	 * @param number x The x amount to move by
	 * @param number y The y amount to move by
	 * @returns am.GameObject This
	 */
Moves a GameObject by {x, y} amount.
If the new location isn't valid, the GameObject isn't moved.
@param number x The x amount to move by
@param number y The y amount to move by
@returns am.GameObject This
Moves a GameObject by { x y } amount . If the new location isn ' t valid the GameObject isn ' t moved . @param number x The x amount to move by @param number y The y amount to move by @returns am . GameObject This
int GameObject_move(lua_State *lua, GameObject *obj)
	{
		if (!obj)
		{
			return 0;
		}
		if (lua_isnum(lua, 2) && lua_isnum(lua, 3))
		{
			obj->move(lua_tofloat(lua, 2), lua_tofloat(lua, 3));
			lua_first(lua);
		}
		return LuaState::expectedArgs(lua, "move", "number x, number y");
	}
int GameObject_move ( lua_State * lua , GameObject * obj ) { if ( ! obj ) { return 0 ; } if ( lua_isnum ( lua , 2 ) && lua_isnum ( lua , 3 ) ) { obj -> move ( lua_tofloat ( lua , 2 ) , lua_tofloat ( lua , 3 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
Moves a GameObject by {x, y} amount.
Moves a GameObject by { x y } amount .